Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple.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.PumpTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_PumpTestSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.PumpTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_PumpTestSimple",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.001111/0.001111, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.264/1.264, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05279/0.05279, allocations: 11.85 MB / 281.6 MB, free: 9.426 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.001461/0.001461, allocations: 75.44 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07519/0.07666, allocations: 49.22 MB / 391.2 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.PumpTestSimple): time 0.004612/0.08131, allocations: 3.352 MB / 394.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.08313, allocations: 0.8461 MB / 395.4 MB, free: 396 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003178/0.08348, allocations: 8 kB / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.08376, allocations: 59.38 kB / 395.4 MB, free: 328 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006762/0.08445, allocations: 190.7 kB / 395.6 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.08476, allocations: 103.8 kB / 395.7 MB, free: 32 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007632/0.08553, allocations: 0.6182 MB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004309/0.08598, allocations: 258.1 kB / 396.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.08639, allocations: 235.1 kB / 396.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.08683, allocations: 251 kB / 397 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.697e-05/0.08693, allocations: 40 kB / 397.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002019/0.08714, allocations: 52 kB / 397.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.08727, allocations: 119.6 kB / 397.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003198/0.0876, allocations: 254.9 kB / 397.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006258/0.08823, allocations: 0.5181 MB / 398 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.08825, allocations: 4 kB / 398 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.08826, allocations: 0 / 398 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.0883, allocations: 0 / 398 MB, free: 13.7 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.001337/0.08964, allocations: 0.7056 MB / 398.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.0897, allocations: 15.89 kB / 398.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.08981, allocations: 86.7 kB / 398.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002045/0.09002, allocations: 52.38 kB / 398.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004177/0.09044, allocations: 338.4 kB / 399.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.09048, allocations: 32.94 kB / 399.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/0.09055, allocations: 36 kB / 399.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006298/0.09118, allocations: 382.4 kB / 399.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.09121, allocations: 3.906 kB / 399.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.09125, allocations: 16 kB / 399.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.09127, allocations: 12 kB / 399.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005045/0.09178, allocations: 291.8 kB / 400 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.09401, allocations: 1.719 MB / 401.7 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.09435, allocations: 154.7 kB / 401.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.09455, allocations: 88.81 kB / 401.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.09458, allocations: 0 / 401.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.09462, allocations: 38.56 kB / 402 MB, free: 9.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.674e-06/0.09462, allocations: 0 / 402 MB, free: 9.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004855/0.09512, allocations: 227.5 kB / 402.2 MB, free: 9.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.09517, allocations: 51.41 kB / 402.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004404/0.09561, allocations: 437.4 kB / 402.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.09564, allocations: 29.7 kB / 402.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.0958, allocations: 223.7 kB / 402.9 MB, free: 8.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/0.09585, allocations: 63.11 kB / 403 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.09595, allocations: 57.59 kB / 403 MB, free: 8.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.09608, allocations: 354.7 kB / 403.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.09625, allocations: 81.31 kB / 403.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.09645, allocations: 158 kB / 403.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.0968, allocations: 256.4 kB / 403.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.09681, allocations: 7.875 kB / 403.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004833/0.0973, allocations: 292.8 kB / 404.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.09732, allocations: 4 kB / 404.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.09734, allocations: 4 kB / 404.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.09736, allocations: 4 kB / 404.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.09763, allocations: 68.33 kB / 404.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.09766, allocations: 8 kB / 404.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.0979, allocations: 51.45 kB / 404.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.09793, allocations: 16 kB / 404.3 MB, free: 6.949 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: constantSpeed.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (33): * Single equations (assignments): 33 * 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.0002115/0.09815, allocations: 177.7 kB / 404.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/0.09822, allocations: 39.53 kB / 404.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003729/0.0986, allocations: 201.1 kB / 404.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.09862, allocations: 8 kB / 404.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.09863, allocations: 0 / 404.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.09864, allocations: 0 / 404.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/0.09955, allocations: 0.7194 MB / 405.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.09957, allocations: 4.109 kB / 405.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.09976, allocations: 43.92 kB / 405.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.09978, allocations: 7.938 kB / 405.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.0998, allocations: 0 / 405.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.09981, allocations: 7.984 kB / 405.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.09981, allocations: 0 / 405.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005642/0.1004, allocations: 385.6 kB / 405.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.1005, allocations: 132.5 kB / 406 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.1006, allocations: 7.938 kB / 406 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.1008, allocations: 7.984 kB / 406 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1008, allocations: 11.98 kB / 406 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.1008, allocations: 8.062 kB / 406 MB, free: 5.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.1012, allocations: 311.1 kB / 406.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1012, allocations: 0 / 406.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.1016, allocations: 95.84 kB / 406.4 MB, free: 4.668 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (constantSpeed.phi) * 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 (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 Backend phase and start with SimCode phase: time 0.0007532/0.1023, allocations: 0.926 MB / 407.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000366/0.1027, allocations: 184.3 kB / 407.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1027, allocations: 0 / 407.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.1028, allocations: 72.09 kB / 407.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.1035, allocations: 141.5 kB / 407.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004537/0.108, allocations: 3.79 MB / 411.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.1084, allocations: 0.8231 MB / 412.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.1087, allocations: 64.09 kB / 412.4 MB, free: 14.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1088, allocations: 123.4 kB / 412.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1088, allocations: 0 / 412.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.1402, allocations: 9.496 MB / 422 MB, free: 4.836 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.037/7.177, allocations: 8.047 kB / 422.1 MB, free: 4.828 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 OpenHydraulics_OpenHydraulics_DevelopmentTests_PumpTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.PumpTestSimple.pipe 2>&1)