Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.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.ThrottleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ThrottleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest",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.005029/0.00503, allocations: 102.4 kB / 15.74 MB, free: 6.043 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.001302/0.001302, allocations: 200.9 kB / 16.68 MB, free: 5.965 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.367/1.367, 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.0575/0.0575, allocations: 11.84 MB / 281.7 MB, free: 9.34 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.002166/0.002166, allocations: 71.91 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2404, allocations: 49.22 MB / 441.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ThrottleValveTest): time 0.00259/0.243, allocations: 1.937 MB / 443 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.2451, allocations: 1.861 MB / 444.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.2452, allocations: 1.375 kB / 444.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.2454, allocations: 50.95 kB / 444.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.2457, allocations: 94.91 kB / 445 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.2464, allocations: 336 kB / 445.3 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.2466, allocations: 177.6 kB / 445.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2467, allocations: 30.2 kB / 445.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.489e-05/0.2468, allocations: 64.27 kB / 445.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.804e-05/0.2469, allocations: 66.36 kB / 445.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2469, allocations: 9.719 kB / 445.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004381/0.2473, allocations: 233.7 kB / 445.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.576e-05/0.2474, allocations: 32.86 kB / 445.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.529e-05/0.2474, allocations: 74.84 kB / 446 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004317/0.2479, allocations: 278.6 kB / 446.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2479, allocations: 1 kB / 446.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2479, allocations: 0 / 446.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.2479, allocations: 0 / 446.3 MB, free: 0.8242 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004442/0.2484, allocations: 475.6 kB / 446.7 MB, free: 388 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.2484, allocations: 16.52 kB / 446.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.292e-05/0.2484, allocations: 48.7 kB / 446.8 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.2485, allocations: 20.88 kB / 446.8 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.2487, allocations: 214.5 kB / 447 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.2487, allocations: 9.391 kB / 447.1 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.2488, allocations: 14.62 kB / 447.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.249, allocations: 120.5 kB / 447.2 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.249, allocations: 1.219 kB / 447.2 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.249, allocations: 5.984 kB / 447.2 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.249, allocations: 2.469 kB / 447.2 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.2493, allocations: 118.5 kB / 447.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.2505, allocations: 0.9304 MB / 448.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.2506, allocations: 58.17 kB / 448.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.827e-05/0.2507, allocations: 26.28 kB / 448.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.2508, allocations: 89.25 kB / 448.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.2509, allocations: 32.88 kB / 448.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.703e-06/0.2509, allocations: 0 / 448.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002804/0.2512, allocations: 98.33 kB / 448.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.2512, allocations: 56.72 kB / 448.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.2514, allocations: 203.7 kB / 448.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.2515, allocations: 27.58 kB / 448.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.565e-05/0.2516, allocations: 123 kB / 448.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.2516, allocations: 24.97 kB / 449 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.315e-05/0.2516, allocations: 30.78 kB / 449 MB, free: 14.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2518, allocations: 329.9 kB / 449.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-05/0.2519, allocations: 25.02 kB / 449.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.922e-05/0.252, allocations: 34.34 kB / 449.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.2521, allocations: 54.83 kB / 449.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2521, allocations: 0 / 449.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000207/0.2523, allocations: 122.9 kB / 449.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2523, allocations: 6.219 kB / 449.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.2523, allocations: 4.031 kB / 449.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.2524, allocations: 1.062 kB / 449.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.376e-05/0.2525, allocations: 21.97 kB / 449.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.2525, allocations: 1 kB / 449.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.454e-05/0.2525, allocations: 12.39 kB / 449.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.2526, allocations: 3.016 kB / 449.6 MB, free: 13.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (10): * Single equations (assignments): 10 * 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 9.893e-05/0.2527, allocations: 128.2 kB / 449.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.2527, allocations: 14.91 kB / 449.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002263/0.2529, allocations: 99.97 kB / 449.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.253, allocations: 0 / 449.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.253, allocations: 1.5 kB / 449.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.253, allocations: 4.641 kB / 449.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004716/0.2535, allocations: 400.1 kB / 450.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.2535, allocations: 1.094 kB / 450.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.925e-05/0.2535, allocations: 11.92 kB / 450.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2535, allocations: 7.969 kB / 450.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.2536, allocations: 0 / 450.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2536, allocations: 3.938 kB / 450.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2536, allocations: 3.938 kB / 450.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000187/0.2538, allocations: 184 kB / 450.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-05/0.2538, allocations: 92.55 kB / 450.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.2539, allocations: 3.719 kB / 450.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.859e-05/0.254, allocations: 12 kB / 450.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/0.254, allocations: 7.438 kB / 450.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.254, allocations: 0 / 450.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.2541, allocations: 160.4 kB / 450.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2541, allocations: 0 / 450.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.2545, allocations: 86.22 kB / 450.8 MB, free: 12.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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.0006745/0.2552, allocations: 0.7889 MB / 451.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001843/0.2554, allocations: 64.53 kB / 451.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2554, allocations: 5.156 kB / 451.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.2554, allocations: 16.31 kB / 451.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.2558, allocations: 55.08 kB / 451.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.2578, allocations: 1.827 MB / 453.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.2581, allocations: 0.7079 MB / 454.3 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.438e-05/0.2582, allocations: 17.92 kB / 454.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.06e-05/0.2583, allocations: 45.03 kB / 454.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2583, allocations: 1.375 kB / 454.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.2838, allocations: 5.067 MB / 459.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.204, allocations: 5.312 kB / 459.4 MB, free: 7.109 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest_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_ThrottleValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe 2>&1)