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: translateModel(OpenHydraulics.DevelopmentTests.TankTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest") translateModel(OpenHydraulics.DevelopmentTests.TankTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 103.1 kB / 16.4 MB, free: 5.973 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.001325/0.001325, allocations: 189.6 kB / 17.35 MB, free: 5.582 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.34/1.34, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05238/0.05238, allocations: 11.83 MB / 282.4 MB, free: 228 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.001541/0.001541, allocations: 69.16 kB / 393 MB, free: 45.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08073/0.08228, allocations: 49.23 MB / 442.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.TankTest): time 0.003227/0.08558, allocations: 1.921 MB / 444.2 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009794/0.08658, allocations: 0.6125 MB / 444.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.077e-05/0.08668, allocations: 4 kB / 444.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.379e-05/0.08674, allocations: 11.86 kB / 444.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003041/0.08706, allocations: 75.47 kB / 444.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.287e-05/0.08717, allocations: 23.97 kB / 444.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.08737, allocations: 135.3 kB / 445 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.0875, allocations: 31.95 kB / 445 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.388e-05/0.0876, allocations: 51.78 kB / 445.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.08772, allocations: 51.78 kB / 445.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.08774, allocations: 4 kB / 445.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.837e-05/0.08782, allocations: 23.92 kB / 445.2 MB, free: 15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.981e-05/0.08785, allocations: 11.94 kB / 445.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.884e-05/0.08791, allocations: 47.8 kB / 445.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.08808, allocations: 111.6 kB / 445.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.0881, allocations: 4 kB / 445.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0881, allocations: 0 / 445.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.08811, allocations: 0 / 445.3 MB, free: 14.83 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.0004626/0.08858, allocations: 420.1 kB / 445.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.08863, allocations: 15.89 kB / 445.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.08868, allocations: 8.844 kB / 445.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.08892, allocations: 204.1 kB / 446 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.08894, allocations: 4.375 kB / 446 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.08896, allocations: 16.12 kB / 446 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.08913, allocations: 87.44 kB / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.08915, allocations: 0 / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.08916, allocations: 4 kB / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.08917, allocations: 0 / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.629e-05/0.08927, allocations: 51.97 kB / 446.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.08988, allocations: 0.4971 MB / 446.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.513e-05/0.08998, allocations: 38.52 kB / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.706e-05/0.09002, allocations: 20.97 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.09004, allocations: 3.984 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.09008, allocations: 42.5 kB / 446.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.09008, allocations: 3.938 kB / 446.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002194/0.09031, allocations: 103.3 kB / 446.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.09036, allocations: 81.11 kB / 446.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.09051, allocations: 162.2 kB / 447.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.09054, allocations: 29.7 kB / 447.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.0906, allocations: 104 kB / 447.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.09062, allocations: 23.64 kB / 447.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/0.09067, allocations: 17.72 kB / 447.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.09079, allocations: 326.8 kB / 447.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.09083, allocations: 19.98 kB / 447.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.082e-05/0.09087, allocations: 12 kB / 447.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.419e-05/0.09096, allocations: 100.2 kB / 447.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.09097, allocations: 0 / 447.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001464/0.09112, allocations: 111.3 kB / 447.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.09116, allocations: 37.64 kB / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.09117, allocations: 0 / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.09119, allocations: 0 / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.0913, allocations: 15.92 kB / 447.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.09131, allocations: 0 / 447.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.605e-05/0.09138, allocations: 7.906 kB / 447.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.0914, allocations: 4 kB / 447.9 MB, free: 12.01 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.0001055/0.09151, allocations: 147.5 kB / 448 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.09155, allocations: 11.84 kB / 448 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.09172, allocations: 107.9 kB / 448.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.09173, allocations: 4.047 kB / 448.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.09174, allocations: 8 kB / 448.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.09175, allocations: 0 / 448.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003459/0.0921, allocations: 384.9 kB / 448.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.09212, allocations: 0 / 448.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.015e-05/0.09217, allocations: 15.97 kB / 448.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.09219, allocations: 3.984 kB / 448.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.0922, allocations: 7.984 kB / 448.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.09221, allocations: 0 / 448.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.09221, allocations: 0 / 448.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.09238, allocations: 205.9 kB / 448.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.09246, allocations: 93 kB / 448.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.09249, allocations: 11.94 kB / 448.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.09258, allocations: 4 kB / 448.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.0926, allocations: 0 / 448.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.09261, allocations: 7.984 kB / 448.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.007e-05/0.09271, allocations: 127.2 kB / 449 MB, free: 10.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09272, allocations: 7.938 kB / 449 MB, free: 10.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002477/0.09297, allocations: 20 kB / 449 MB, free: 10.73 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.0001251/0.0931, allocations: 107.2 kB / 449.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.09327, allocations: 111.4 kB / 449.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.09328, allocations: 0 / 449.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.257e-05/0.09334, allocations: 71.34 kB / 449.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.09366, allocations: 48.47 kB / 449.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004281/0.0941, allocations: 261.2 kB / 449.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.09435, allocations: 0.7005 MB / 450.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.09439, allocations: 15.44 kB / 450.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.0944, allocations: 0 / 450.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of Templates: time 0.003135/0.09754, allocations: 1.685 MB / 452 MB, free: 7.664 MB / 334.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.makefile (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 & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe 2>&1)