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.007794/0.007794, allocations: 103.4 kB / 15.73 MB, free: 6.047 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.001742/0.001742, allocations: 189.3 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.274/1.274, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05209/0.05209, allocations: 11.85 MB / 281.8 MB, free: 9.332 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.001454/0.001454, allocations: 71.91 kB / 391.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2488, allocations: 49.22 MB / 441.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.TankTest): time 0.00274/0.2516, allocations: 1.929 MB / 443 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008487/0.2525, allocations: 0.6191 MB / 443.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.321e-05/0.2526, allocations: 1.438 kB / 443.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.928e-05/0.2526, allocations: 14.05 kB / 443.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.253, allocations: 71.27 kB / 443.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.983e-05/0.2531, allocations: 23.22 kB / 443.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001814/0.2532, allocations: 136 kB / 443.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.2534, allocations: 26.38 kB / 443.9 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.229e-05/0.2535, allocations: 51.47 kB / 443.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.2536, allocations: 55.72 kB / 444 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.2536, allocations: 10.05 kB / 444 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.556e-05/0.2537, allocations: 17.92 kB / 444 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.438e-05/0.2537, allocations: 11.83 kB / 444 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.573e-05/0.2538, allocations: 48.3 kB / 444.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.2539, allocations: 106.3 kB / 444.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2539, allocations: 4 kB / 444.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2539, allocations: 0 / 444.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.254, allocations: 1 kB / 444.2 MB, free: 2.082 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.0004019/0.2544, allocations: 423.1 kB / 444.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2544, allocations: 13.88 kB / 444.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.979e-05/0.2544, allocations: 43.33 kB / 444.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.45e-05/0.2545, allocations: 9.188 kB / 444.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.2547, allocations: 203.5 kB / 444.8 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.2547, allocations: 11.03 kB / 444.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.2547, allocations: 13.56 kB / 444.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.2549, allocations: 78.86 kB / 444.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.2549, allocations: 0 / 444.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.2549, allocations: 9.281 kB / 445 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.2549, allocations: 5.719 kB / 445 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.524e-05/0.255, allocations: 50.34 kB / 445 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.2555, allocations: 0.4986 MB / 445.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.875e-05/0.2556, allocations: 37.86 kB / 445.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.952e-05/0.2557, allocations: 21.69 kB / 445.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.2557, allocations: 8 kB / 445.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.356e-05/0.2557, allocations: 36.53 kB / 445.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.2557, allocations: 0 / 445.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002009/0.2559, allocations: 104 kB / 445.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.256, allocations: 78.83 kB / 445.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.2561, allocations: 162.7 kB / 446 MB, free: 420 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.2561, allocations: 25.7 kB / 446 MB, free: 388 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.2561, allocations: 99.83 kB / 446.1 MB, free: 292 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-05/0.2562, allocations: 27.52 kB / 446.1 MB, free: 268 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.2562, allocations: 28.42 kB / 446.1 MB, free: 244 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/0.2563, allocations: 316.3 kB / 446.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.906e-05/0.2563, allocations: 18.02 kB / 446.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.342e-05/0.2564, allocations: 15.03 kB / 446.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.588e-05/0.2565, allocations: 94.36 kB / 446.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2565, allocations: 0.875 kB / 446.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001569/0.2566, allocations: 118 kB / 446.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.2567, allocations: 35.72 kB / 446.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2567, allocations: 5.031 kB / 446.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.2567, allocations: 0 / 446.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.2568, allocations: 12.55 kB / 446.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.2568, allocations: 0.7031 kB / 446.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.777e-05/0.2569, allocations: 14.16 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.2569, allocations: 3.656 kB / 446.7 MB, free: 15.69 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 9.717e-05/0.257, allocations: 146 kB / 446.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.2571, allocations: 12.91 kB / 446.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.2573, allocations: 117.3 kB / 447 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2573, allocations: 5.406 kB / 447 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2573, allocations: 4.578 kB / 447 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2573, allocations: 1.5 kB / 447 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.2577, allocations: 387.8 kB / 447.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2577, allocations: 1.219 kB / 447.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.189e-05/0.2578, allocations: 7.984 kB / 447.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.2578, allocations: 5.031 kB / 447.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.2578, allocations: 1.766 kB / 447.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2578, allocations: 5.062 kB / 447.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2578, allocations: 0 / 447.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.258, allocations: 204 kB / 447.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.153e-05/0.2581, allocations: 93.67 kB / 447.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.2581, allocations: 10.94 kB / 447.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.067e-05/0.2582, allocations: 1.156 kB / 447.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.2582, allocations: 7.922 kB / 447.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.2583, allocations: 1.281 kB / 447.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001143/0.2584, allocations: 130.9 kB / 447.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2584, allocations: 0 / 447.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002456/0.2586, allocations: 31.41 kB / 447.9 MB, free: 14.63 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.0004973/0.2591, allocations: 0.7465 MB / 448.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.2593, allocations: 99.69 kB / 448.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.2593, allocations: 0 / 448.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.102e-05/0.2594, allocations: 74.61 kB / 448.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.2597, allocations: 35.3 kB / 448.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.2615, allocations: 1.613 MB / 450.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.2618, allocations: 0.6965 MB / 451.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.689e-05/0.2619, allocations: 27.39 kB / 451.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.2619, allocations: 33.84 kB / 451.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.262, allocations: 0 / 451.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01767/0.2796, allocations: 3.1 MB / 454.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.322/7.601, allocations: 5.375 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe 2>&1)