Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ShuttleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ShuttleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006429/0.006429, allocations: 98.38 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 191.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05624/0.05624, allocations: 11.84 MB / 281.8 MB, free: 9.336 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 72.11 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2411, allocations: 49.23 MB / 441.1 MB, free: 4.145 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003874/0.245, allocations: 2.598 MB / 443.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.2473, allocations: 1.987 MB / 445.7 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.2475, allocations: 3.125 kB / 445.7 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002657/0.2477, allocations: 60.73 kB / 445.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.2481, allocations: 110.5 kB / 445.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.249, allocations: 386.4 kB / 446.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003174/0.2493, allocations: 303.2 kB / 446.5 MB, free: 456 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.2495, allocations: 104 kB / 446.6 MB, free: 396 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.2497, allocations: 108.1 kB / 446.7 MB, free: 348 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.2498, allocations: 119.2 kB / 446.8 MB, free: 288 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.2499, allocations: 17.5 kB / 446.8 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003432/0.2502, allocations: 192.3 kB / 447 MB, free: 240 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.966e-05/0.2503, allocations: 44.77 kB / 447.1 MB, free: 208 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.2504, allocations: 130.7 kB / 447.2 MB, free: 132 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005223/0.2509, allocations: 365.1 kB / 447.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2509, allocations: 1.156 kB / 447.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2509, allocations: 0 / 447.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.251, allocations: 4 kB / 447.6 MB, free: 15.98 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0007568/0.2517, allocations: 0.5631 MB / 448.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.2518, allocations: 12.86 kB / 448.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.19e-05/0.2518, allocations: 52.88 kB / 448.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.004e-05/0.2519, allocations: 26.7 kB / 448.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.2522, allocations: 260.2 kB / 448.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.2522, allocations: 14.91 kB / 448.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.2523, allocations: 23.73 kB / 448.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.2527, allocations: 218 kB / 448.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2527, allocations: 0 / 448.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.2527, allocations: 4.984 kB / 448.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.2527, allocations: 5.125 kB / 448.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.2531, allocations: 157.2 kB / 448.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.2544, allocations: 1.211 MB / 450.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.2548, allocations: 115.7 kB / 450.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.2549, allocations: 46.89 kB / 450.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.398e-05/0.255, allocations: 82.98 kB / 450.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.2551, allocations: 38.44 kB / 450.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.2551, allocations: 1.469 kB / 450.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.002197/0.2573, allocations: 0.5217 MB / 450.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2573, allocations: 55.41 kB / 450.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.2576, allocations: 257.9 kB / 451.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.2576, allocations: 25.7 kB / 451.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2577, allocations: 161.9 kB / 451.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.2578, allocations: 39.77 kB / 451.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/0.2579, allocations: 39.45 kB / 451.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.258, allocations: 330.9 kB / 451.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.2582, allocations: 68.23 kB / 451.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.2584, allocations: 104.7 kB / 452 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/0.2588, allocations: 166.2 kB / 452.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2588, allocations: 0 / 452.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005196/0.2593, allocations: 230.7 kB / 452.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2594, allocations: 6.656 kB / 452.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2594, allocations: 1.031 kB / 452.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2594, allocations: 2.188 kB / 452.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.2596, allocations: 44.59 kB / 452.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.2596, allocations: 6.094 kB / 452.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.2598, allocations: 25.17 kB / 452.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.2598, allocations: 9.516 kB / 452.4 MB, free: 12.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.26, allocations: 138.8 kB / 452.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.26, allocations: 22.23 kB / 452.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004972/0.2605, allocations: 195.6 kB / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2605, allocations: 1.375 kB / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2605, allocations: 0 / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2606, allocations: 5.359 kB / 452.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.2609, allocations: 284.2 kB / 453.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2609, allocations: 0 / 453.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.2611, allocations: 33.91 kB / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.2611, allocations: 1.375 kB / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.2611, allocations: 1.375 kB / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2611, allocations: 0 / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2611, allocations: 5.375 kB / 453.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000467/0.2616, allocations: 283.1 kB / 453.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.2617, allocations: 111.8 kB / 453.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.2618, allocations: 1.375 kB / 453.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.2619, allocations: 14.86 kB / 453.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.262, allocations: 16.05 kB / 453.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.262, allocations: 2.75 kB / 453.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.2622, allocations: 185 kB / 453.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2622, allocations: 3.938 kB / 453.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004251/0.2626, allocations: 86.06 kB / 453.8 MB, free: 10.96 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009925/0.2636, allocations: 0.883 MB / 454.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004672/0.2641, allocations: 165.2 kB / 454.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.2641, allocations: 0 / 454.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.2643, allocations: 73.36 kB / 454.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.2648, allocations: 65.59 kB / 455 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.2683, allocations: 2.426 MB / 457.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.2687, allocations: 0.743 MB / 458.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.2689, allocations: 30.25 kB / 458.2 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.269, allocations: 76.69 kB / 458.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.269, allocations: 0 / 458.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.2938, allocations: 6.213 MB / 464.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.557/7.851, allocations: 7.875 kB / 464.5 MB, free: 3.371 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe 2>&1)