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.004827/0.004827, allocations: 101 kB / 15.73 MB, free: 6.059 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.001282/0.001282, allocations: 193.6 kB / 16.67 MB, free: 5.969 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.361/1.361, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05767/0.05767, allocations: 11.84 MB / 281.8 MB, free: 9.348 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.002072/0.002072, allocations: 71.89 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2398, allocations: 49.22 MB / 441.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.TankTest): time 0.002514/0.2424, allocations: 1.929 MB / 443 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007572/0.2432, allocations: 0.6126 MB / 443.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.563e-05/0.2432, allocations: 1.312 kB / 443.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.84e-05/0.2433, allocations: 13.92 kB / 443.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002719/0.2436, allocations: 71.78 kB / 443.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.49e-05/0.2437, allocations: 21.81 kB / 443.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.2439, allocations: 144 kB / 443.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.537e-05/0.244, allocations: 30.02 kB / 443.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.35e-05/0.244, allocations: 43.98 kB / 443.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.2442, allocations: 59.02 kB / 444 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2442, allocations: 6.656 kB / 444 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.516e-05/0.2442, allocations: 21.22 kB / 444 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.2443, allocations: 12.47 kB / 444 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.319e-05/0.2443, allocations: 49.39 kB / 444.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.2445, allocations: 113.7 kB / 444.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2445, allocations: 1.031 kB / 444.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2445, allocations: 0 / 444.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.2445, allocations: 0 / 444.2 MB, free: 2.074 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003502/0.2449, allocations: 423.5 kB / 444.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2449, allocations: 13.83 kB / 444.6 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.15e-05/0.245, allocations: 39.41 kB / 444.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.133e-05/0.245, allocations: 10.52 kB / 444.7 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.2452, allocations: 198.1 kB / 444.9 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.2452, allocations: 8.453 kB / 444.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.2452, allocations: 16.69 kB / 444.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.2453, allocations: 85.98 kB / 445 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2454, allocations: 0.5156 kB / 445 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2454, allocations: 1.188 kB / 445 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2454, allocations: 6.719 kB / 445 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.64e-05/0.2455, allocations: 49.08 kB / 445 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.246, allocations: 0.5067 MB / 445.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.895e-05/0.2461, allocations: 38.14 kB / 445.6 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.871e-05/0.2461, allocations: 17.64 kB / 445.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.297e-05/0.2461, allocations: 5.688 kB / 445.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.59e-05/0.2461, allocations: 35.16 kB / 445.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.2461, allocations: 1.344 kB / 445.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001957/0.2463, allocations: 106.1 kB / 445.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/0.2464, allocations: 79.06 kB / 445.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.2465, allocations: 166.1 kB / 446 MB, free: 412 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-06/0.2465, allocations: 27.25 kB / 446 MB, free: 380 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.841e-05/0.2466, allocations: 107.4 kB / 446.1 MB, free: 276 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.2466, allocations: 21.03 kB / 446.1 MB, free: 260 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.2466, allocations: 26.12 kB / 446.1 MB, free: 236 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.2467, allocations: 320.5 kB / 446.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.767e-05/0.2468, allocations: 15.09 kB / 446.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.221e-05/0.2468, allocations: 15.52 kB / 446.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.2469, allocations: 101.8 kB / 446.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2469, allocations: 0 / 446.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001582/0.2471, allocations: 113.8 kB / 446.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.2471, allocations: 40.02 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.2471, allocations: 1.156 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.2472, allocations: 0.7031 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.623e-05/0.2473, allocations: 12.45 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2473, allocations: 0.5156 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.2473, allocations: 14.08 kB / 446.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.2474, allocations: 3.438 kB / 446.8 MB, free: 15.68 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 0.0001135/0.2475, allocations: 149.3 kB / 446.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.2475, allocations: 14.23 kB / 446.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.2477, allocations: 112.9 kB / 447 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2477, allocations: 6 kB / 447 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2477, allocations: 0 / 447 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2477, allocations: 0.7031 kB / 447 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.2481, allocations: 389.2 kB / 447.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2482, allocations: 4.031 kB / 447.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/0.2482, allocations: 13 kB / 447.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2482, allocations: 0.6562 kB / 447.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.2482, allocations: 1.062 kB / 447.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2482, allocations: 1.312 kB / 447.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2483, allocations: 1.75 kB / 447.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001817/0.2484, allocations: 207.5 kB / 447.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.94e-05/0.2485, allocations: 101.6 kB / 447.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.2486, allocations: 5.156 kB / 447.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.853e-05/0.2486, allocations: 2.266 kB / 447.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.677e-05/0.2487, allocations: 3.406 kB / 447.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-06/0.2487, allocations: 2.031 kB / 447.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.2488, allocations: 129.5 kB / 447.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2488, allocations: 1.469 kB / 447.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002457/0.249, allocations: 26.73 kB / 447.9 MB, free: 14.62 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.0005027/0.2495, allocations: 0.7587 MB / 448.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001627/0.2497, allocations: 95.69 kB / 448.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2497, allocations: 0 / 448.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.514e-05/0.2498, allocations: 74.47 kB / 448.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.2501, allocations: 39.91 kB / 448.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.2518, allocations: 1.611 MB / 450.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.2521, allocations: 0.7046 MB / 451.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.509e-05/0.2522, allocations: 14.75 kB / 451.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.904e-05/0.2522, allocations: 29.36 kB / 451.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2522, allocations: 0 / 451.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.275, allocations: 3.074 MB / 454.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.948/8.223, allocations: 5.312 kB / 454.3 MB, free: 10.16 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)