Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001537/0.001541, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001666/0.001665, allocations: 94.81 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2961/0.2961, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004778, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1271, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.0677/0.1948, allocations: 40.25 MB / 0.5181 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3807/0.5756, allocations: 22.53 MB / 0.5401 GB, free: 11.98 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.5777, allocations: 38.94 kB / 0.5402 GB, free: 11.96 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003163/0.5809, allocations: 0.5055 MB / 0.5407 GB, free: 11.88 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03035/0.6113, allocations: 4.754 MB / 0.5453 GB, free: 11.46 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02773/0.6391, allocations: 4.078 MB / 0.5493 GB, free: 9.914 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005136/0.6442, allocations: 1.485 MB / 0.5508 GB, free: 9.324 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.646, allocations: 0.4958 MB / 0.5512 GB, free: 9.023 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03764/0.6837, allocations: 9.157 MB / 0.5602 GB, free: 6.352 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04355/0.7273, allocations: 14.38 MB / 0.5742 GB, free: 8.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003206/0.7276, allocations: 44 kB / 0.5743 GB, free: 7.977 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02697/0.7546, allocations: 8.283 MB / 0.5823 GB, free: 15.78 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008311/0.7555, allocations: 269.5 kB / 0.5826 GB, free: 15.53 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006547/0.7562, allocations: 229.2 kB / 0.5828 GB, free: 15.3 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.7692, allocations: 4.129 MB / 0.5869 GB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.7692, allocations: 4 kB / 0.5869 GB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.7692, allocations: 0 / 0.5869 GB, free: 11.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.729e-05/0.7693, allocations: 0 / 0.5869 GB, free: 11.41 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.007809/0.7771, allocations: 1.93 MB / 0.5887 GB, free: 9.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.7772, allocations: 8.031 kB / 0.5888 GB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003921/0.7776, allocations: 129 kB / 0.5889 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003869/0.7815, allocations: 373.1 kB / 0.5892 GB, free: 8.941 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002166/0.7837, allocations: 0.7018 MB / 0.5899 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.7839, allocations: 73.66 kB / 0.59 GB, free: 8.152 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/0.7842, allocations: 79.19 kB / 0.5901 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005641/0.7898, allocations: 1.447 MB / 0.5915 GB, free: 6.578 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/0.7899, allocations: 7.891 kB / 0.5915 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.7901, allocations: 38.34 kB / 0.5915 GB, free: 6.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.7903, allocations: 57.97 kB / 0.5916 GB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005983/0.7962, allocations: 1.346 MB / 0.5929 GB, free: 5.137 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01448/0.8108, allocations: 6.543 MB / 0.5993 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004821/0.8156, allocations: 1.031 MB / 0.6003 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1164/0.9321, allocations: 32.47 MB / 0.632 GB, free: 8.754 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.768e-05/0.9322, allocations: 42.98 kB / 0.632 GB, free: 8.703 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.965e-06/0.9322, allocations: 0 / 0.632 GB, free: 8.703 MB / 442.7 MB Notification: Performance of matching and sorting (n=60): time 0.01456/0.9468, allocations: 3.328 MB / 0.6353 GB, free: 5.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.947, allocations: 162.8 kB / 0.6354 GB, free: 5.121 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.9484, allocations: 0.7075 MB / 0.6361 GB, free: 4.402 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.9485, allocations: 37.7 kB / 0.6362 GB, free: 4.359 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/0.9489, allocations: 441 kB / 0.6366 GB, free: 3.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.9492, allocations: 208.2 kB / 0.6368 GB, free: 3.727 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.061e-05/0.9493, allocations: 16 kB / 0.6368 GB, free: 3.711 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.9495, allocations: 342.8 kB / 0.6371 GB, free: 3.367 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.9511, allocations: 413.7 kB / 0.6375 GB, free: 2.965 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.9529, allocations: 0.6171 MB / 0.6381 GB, free: 2.258 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.9546, allocations: 485.9 kB / 0.6386 GB, free: 1.789 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.9546, allocations: 4 kB / 0.6386 GB, free: 1.785 MB / 442.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00461/0.9593, allocations: 1.315 MB / 0.6399 GB, free: 468 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001195/0.9605, allocations: 2.434 MB / 0.6423 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.9605, allocations: 12 kB / 0.6423 GB, free: 13.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005794/0.9664, allocations: 0.6983 MB / 0.643 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.9676, allocations: 163.7 kB / 0.6431 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002869/0.9705, allocations: 1.305 MB / 0.6444 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.972, allocations: 99.83 kB / 0.6445 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.9721, allocations: 43.98 kB / 0.6445 GB, free: 11.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.9722, allocations: 4 kB / 0.6445 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004717/0.9769, allocations: 1.232 MB / 0.6457 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.977, allocations: 8 kB / 0.6457 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002994/0.98, allocations: 420.6 kB / 0.6461 GB, free: 9.832 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.9812, allocations: 167.8 kB / 0.6463 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/0.9835, allocations: 1.115 MB / 0.6474 GB, free: 8.531 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.9847, allocations: 103.8 kB / 0.6475 GB, free: 8.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.9848, allocations: 39.98 kB / 0.6475 GB, free: 8.391 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008195/0.9857, allocations: 368.8 kB / 0.6479 GB, free: 8.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.986, allocations: 87.05 kB / 0.648 GB, free: 7.934 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007498/0.9935, allocations: 3.328 MB / 0.6512 GB, free: 4.598 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.561e-05/0.9936, allocations: 39.94 kB / 0.6512 GB, free: 4.559 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.9936, allocations: 0 / 0.6512 GB, free: 4.559 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005831/0.9995, allocations: 2.778 MB / 0.654 GB, free: 1.711 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/1.01, allocations: 4.571 MB / 0.6584 GB, free: 13.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.01, allocations: 0 / 0.6584 GB, free: 13.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/1.011, allocations: 171.8 kB / 0.6586 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006612/1.012, allocations: 104.7 kB / 0.6587 GB, free: 12.83 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.163e-05/1.012, allocations: 19.98 kB / 0.6587 GB, free: 12.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006663/1.012, allocations: 0.6422 MB / 0.6593 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/1.012, allocations: 3.953 kB / 0.6593 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006974/1.019, allocations: 2.929 MB / 0.6622 GB, free: 9.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/1.021, allocations: 454.1 kB / 0.6626 GB, free: 8.715 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/1.021, allocations: 16 kB / 0.6626 GB, free: 8.699 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/1.022, allocations: 87.89 kB / 0.6627 GB, free: 8.613 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/1.022, allocations: 64.56 kB / 0.6628 GB, free: 8.551 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/1.022, allocations: 23.98 kB / 0.6628 GB, free: 8.527 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001724/1.024, allocations: 0.7863 MB / 0.6636 GB, free: 7.734 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.024, allocations: 0 / 0.6636 GB, free: 7.734 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006601/1.031, allocations: 1.632 MB / 0.6652 GB, free: 6.102 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01699/1.048, allocations: 5.103 MB / 0.6702 GB, free: 1.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006409/1.054, allocations: 1.853 MB / 0.672 GB, free: 15.24 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.054, allocations: 8.25 kB / 0.672 GB, free: 15.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002559/1.057, allocations: 0.8914 MB / 0.6728 GB, free: 14.34 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00444/1.061, allocations: 473 kB / 0.6733 GB, free: 13.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01472/1.076, allocations: 9.104 MB / 0.6822 GB, free: 4.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/1.078, allocations: 1.329 MB / 0.6835 GB, free: 3.223 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/1.079, allocations: 0.5657 MB / 0.684 GB, free: 2.656 MB / 490.7 MB Notification: Performance of SimCode: time 9.12e-07/1.079, allocations: 0 / 0.684 GB, free: 2.656 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.478/5.557, allocations: 50.52 MB / 0.7334 GB, free: 188.8 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat