Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.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.TankTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.TankTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest",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.005181/0.005181, allocations: 97.33 kB / 15.73 MB, free: 6.035 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.001176/0.001176, allocations: 201.9 kB / 16.68 MB, free: 5.961 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.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05443/0.05443, allocations: 11.85 MB / 281.8 MB, free: 208 kB / 222.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.001462/0.001462, allocations: 69.02 kB / 391.8 MB, free: 45.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07921/0.08068, allocations: 49.23 MB / 441.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.TankTest): time 0.002343/0.08308, allocations: 1.927 MB / 443 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.08394, allocations: 0.6125 MB / 443.6 MB, free: 20 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.757e-05/0.08403, allocations: 0 / 443.6 MB, free: 20 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.703e-05/0.0841, allocations: 11.86 kB / 443.6 MB, free: 8 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.08446, allocations: 79.58 kB / 443.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001019/0.08457, allocations: 23.95 kB / 443.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.08478, allocations: 131.2 kB / 443.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.0849, allocations: 39.89 kB / 443.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.204e-05/0.085, allocations: 43.86 kB / 443.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.08512, allocations: 55.7 kB / 444 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.08514, allocations: 8 kB / 444 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.575e-05/0.08522, allocations: 20 kB / 444 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.08525, allocations: 19.92 kB / 444 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.829e-05/0.08531, allocations: 43.81 kB / 444.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.0855, allocations: 103.8 kB / 444.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.08551, allocations: 3.984 kB / 444.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.08552, allocations: 0 / 444.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.08553, allocations: 0 / 444.2 MB, free: 15.45 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004923/0.08603, allocations: 420.7 kB / 444.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.08607, allocations: 11.89 kB / 444.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.921e-05/0.08612, allocations: 42.73 kB / 444.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.814e-05/0.08616, allocations: 16.83 kB / 444.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.08643, allocations: 205 kB / 444.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.08644, allocations: 8.375 kB / 444.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.08647, allocations: 11.94 kB / 444.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.08663, allocations: 84.31 kB / 445 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.08665, allocations: 0 / 445 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.08666, allocations: 0 / 445 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.08667, allocations: 4 kB / 445 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.821e-05/0.08678, allocations: 55.91 kB / 445 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005994/0.08738, allocations: 0.501 MB / 445.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.778e-05/0.08747, allocations: 42.5 kB / 445.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.306e-05/0.08751, allocations: 20.92 kB / 445.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.08754, allocations: 0 / 445.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.08757, allocations: 38.48 kB / 445.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.08758, allocations: 0 / 445.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002196/0.08781, allocations: 115.3 kB / 445.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.08786, allocations: 81.05 kB / 445.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.088, allocations: 162.2 kB / 446 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.08802, allocations: 25.7 kB / 446 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.199e-05/0.08809, allocations: 104 kB / 446.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.08811, allocations: 27.78 kB / 446.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.08816, allocations: 25.7 kB / 446.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.08827, allocations: 322.8 kB / 446.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.643e-05/0.08831, allocations: 12 kB / 446.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.544e-05/0.08835, allocations: 23.98 kB / 446.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.59e-05/0.08845, allocations: 88.25 kB / 446.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.08846, allocations: 4 kB / 446.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001769/0.08864, allocations: 111.3 kB / 446.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.08869, allocations: 33.64 kB / 446.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.0887, allocations: 3.984 kB / 446.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.08872, allocations: 0 / 446.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.08883, allocations: 16 kB / 446.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.08885, allocations: 4 kB / 446.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.495e-05/0.08892, allocations: 3.953 kB / 446.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.08893, allocations: 7.984 kB / 446.8 MB, free: 12.55 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 8.949e-05/0.08903, allocations: 143.5 kB / 446.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.08907, allocations: 11.89 kB / 446.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001715/0.08924, allocations: 115.6 kB / 447 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.08926, allocations: 0 / 447 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.08927, allocations: 0 / 447 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.08927, allocations: 0 / 447 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.08965, allocations: 401.2 kB / 447.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.08966, allocations: 4 kB / 447.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-05/0.08971, allocations: 4 kB / 447.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.08972, allocations: 4 kB / 447.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.08974, allocations: 4 kB / 447.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.08975, allocations: 0 / 447.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.08975, allocations: 3.938 kB / 447.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001681/0.08992, allocations: 214 kB / 447.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.08999, allocations: 93.05 kB / 447.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.09002, allocations: 0 / 447.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.016e-05/0.09011, allocations: 0 / 447.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.551e-05/0.09014, allocations: 7.938 kB / 447.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.09015, allocations: 0 / 447.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.554e-05/0.09025, allocations: 131.2 kB / 447.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09026, allocations: 0 / 447.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002477/0.09051, allocations: 39.89 kB / 447.9 MB, free: 11.26 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.0004233/0.09094, allocations: 0.7461 MB / 448.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.09112, allocations: 103.3 kB / 448.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.09113, allocations: 0 / 448.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.299e-05/0.09119, allocations: 79.34 kB / 448.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.09152, allocations: 28.62 kB / 448.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.09299, allocations: 1.631 MB / 450.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.09322, allocations: 0.6967 MB / 451.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.84e-05/0.09328, allocations: 9.094 kB / 451.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.306e-05/0.09334, allocations: 27.42 kB / 451.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09335, allocations: 4 kB / 451.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.1114, allocations: 3.08 MB / 454.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/7.791, allocations: 4 kB / 454.3 MB, free: 4.73 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest_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_TankTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe 2>&1)