Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.001674/0.001673, 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.712/2.712, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.00117/0.00117, allocations: 98.86 kB / 270.9 MB, free: 13.28 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.3094/0.3094, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004888, allocations: 12 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1281, allocations: 58.85 MB / 490.3 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.4546/0.5827, allocations: 53.81 MB / 0.5314 GB, free: 12.24 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04837/0.6312, allocations: 21.33 MB / 0.5522 GB, free: 6.988 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002139/0.6334, allocations: 42.41 kB / 0.5522 GB, free: 6.961 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003475/0.6369, allocations: 0.7349 MB / 0.553 GB, free: 6.711 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01741/0.6543, allocations: 3.729 MB / 0.5566 GB, free: 4.945 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0221/0.6765, allocations: 5.139 MB / 0.5616 GB, free: 1.188 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003905/0.6804, allocations: 1.668 MB / 0.5633 GB, free: 128 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.6818, allocations: 0.5858 MB / 0.5638 GB, free: 15.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003103/0.685, allocations: 0.9543 MB / 0.5648 GB, free: 15.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.6865, allocations: 0.587 MB / 0.5653 GB, free: 14.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000237/0.6868, allocations: 48.09 kB / 0.5654 GB, free: 14.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.025/0.7118, allocations: 7.911 MB / 0.5731 GB, free: 9.941 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007087/0.7126, allocations: 235.1 kB / 0.5733 GB, free: 9.711 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006761/0.7133, allocations: 261.1 kB / 0.5736 GB, free: 9.449 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.7258, allocations: 4.133 MB / 0.5776 GB, free: 5.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.7258, allocations: 0 / 0.5776 GB, free: 5.309 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.7258, allocations: 0 / 0.5776 GB, free: 5.309 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.682e-05/0.7259, allocations: 0 / 0.5776 GB, free: 5.309 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.007664/0.7336, allocations: 2.034 MB / 0.5796 GB, free: 3.219 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.7336, allocations: 12.03 kB / 0.5796 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003526/0.734, allocations: 143.6 kB / 0.5797 GB, free: 3.059 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007663/0.7417, allocations: 0.6736 MB / 0.5804 GB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.7437, allocations: 0.7252 MB / 0.5811 GB, free: 1.617 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.7439, allocations: 82 kB / 0.5812 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/0.7441, allocations: 87.95 kB / 0.5813 GB, free: 1.449 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007099/0.7512, allocations: 1.747 MB / 0.583 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.141e-05/0.7513, allocations: 3.938 kB / 0.583 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001765/0.7515, allocations: 40 kB / 0.583 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.338e-05/0.7515, allocations: 24 kB / 0.583 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007823/0.7593, allocations: 1.67 MB / 0.5847 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/0.7751, allocations: 7.59 MB / 0.5921 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006937/0.7821, allocations: 1.316 MB / 0.5934 GB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08788/0.87, allocations: 24.52 MB / 0.6173 GB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.8701, allocations: 43.12 kB / 0.6174 GB, free: 8.879 MB / 426.7 MB Notification: Performance of pre-optimization done (n=67): time 2.925e-06/0.8701, allocations: 0 / 0.6174 GB, free: 8.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.01233/0.8825, allocations: 2.23 MB / 0.6195 GB, free: 6.641 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.8827, allocations: 214.2 kB / 0.6197 GB, free: 6.379 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.8843, allocations: 0.8311 MB / 0.6206 GB, free: 5.523 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000169/0.8845, allocations: 41.7 kB / 0.6206 GB, free: 5.477 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004553/0.885, allocations: 485.7 kB / 0.6211 GB, free: 5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.8853, allocations: 232.7 kB / 0.6213 GB, free: 4.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.652e-05/0.8854, allocations: 16 kB / 0.6213 GB, free: 4.754 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.8856, allocations: 346.8 kB / 0.6216 GB, free: 4.406 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/0.8875, allocations: 393.7 kB / 0.622 GB, free: 4.023 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002167/0.8897, allocations: 0.6828 MB / 0.6227 GB, free: 3.207 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.8918, allocations: 458.9 kB / 0.6231 GB, free: 2.762 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.8918, allocations: 8 kB / 0.6231 GB, free: 2.754 MB / 426.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004793/0.8966, allocations: 1.129 MB / 0.6242 GB, free: 1.617 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001485/0.8981, allocations: 3.222 MB / 0.6274 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/0.8982, allocations: 8 kB / 0.6274 GB, free: 14.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.67e-05/0.8983, allocations: 23.95 kB / 0.6274 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.9002, allocations: 271.6 kB / 0.6277 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.779e-05/0.9003, allocations: 15.94 kB / 0.6277 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.9021, allocations: 178.7 kB / 0.6278 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.9023, allocations: 55.97 kB / 0.6279 GB, free: 13.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.9023, allocations: 10.19 kB / 0.6279 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004634/0.907, allocations: 1.054 MB / 0.6289 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.9071, allocations: 8 kB / 0.6289 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.9071, allocations: 12 kB / 0.6289 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001855/0.909, allocations: 279.8 kB / 0.6292 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.489e-05/0.909, allocations: 15.94 kB / 0.6292 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.9104, allocations: 163.1 kB / 0.6294 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.9106, allocations: 47.98 kB / 0.6294 GB, free: 12.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000765/0.9114, allocations: 336.8 kB / 0.6298 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/0.9117, allocations: 106.8 kB / 0.6299 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/0.9226, allocations: 5.121 MB / 0.6349 GB, free: 6.402 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.511e-05/0.9228, allocations: 67.88 kB / 0.6349 GB, free: 6.336 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.9228, allocations: 0 / 0.6349 GB, free: 6.336 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/0.9228, allocations: 3.984 kB / 0.6349 GB, free: 6.332 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.9272, allocations: 2.506 MB / 0.6374 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.9273, allocations: 0 / 0.6374 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/0.929, allocations: 235.7 kB / 0.6376 GB, free: 3.531 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.929, allocations: 4 kB / 0.6376 GB, free: 3.527 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.936e-05/0.9291, allocations: 27.98 kB / 0.6376 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.625e-06/0.9291, allocations: 4 kB / 0.6376 GB, free: 3.496 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.9291, allocations: 0 / 0.6376 GB, free: 3.496 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005942/0.9351, allocations: 2.387 MB / 0.64 GB, free: 1.062 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/0.9366, allocations: 0.6952 MB / 0.6406 GB, free: 352 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003567/0.937, allocations: 16 kB / 0.6407 GB, free: 336 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/0.9386, allocations: 107.8 kB / 0.6408 GB, free: 228 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002851/0.9389, allocations: 88.86 kB / 0.6408 GB, free: 140 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.722e-05/0.939, allocations: 27.98 kB / 0.6409 GB, free: 112 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002616/0.9416, allocations: 1.187 MB / 0.642 GB, free: 14.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.9416, allocations: 0 / 0.642 GB, free: 14.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006639/0.9483, allocations: 1.557 MB / 0.6436 GB, free: 13.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01403/0.9624, allocations: 4.166 MB / 0.6476 GB, free: 9.125 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007353/0.9698, allocations: 2.045 MB / 0.6496 GB, free: 7.082 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.9698, allocations: 0 / 0.6496 GB, free: 7.082 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002901/0.9727, allocations: 1.164 MB / 0.6508 GB, free: 5.918 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005547/0.9783, allocations: 0.5951 MB / 0.6513 GB, free: 5.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01689/0.9953, allocations: 11.81 MB / 0.6629 GB, free: 9.277 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.9968, allocations: 1.565 MB / 0.6644 GB, free: 7.676 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/0.9985, allocations: 0.8117 MB / 0.6652 GB, free: 6.863 MB / 474.7 MB Notification: Performance of SimCode: time 3.237e-06/0.9985, allocations: 0 / 0.6652 GB, free: 6.863 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.153/5.151, allocations: 48.08 MB / 0.7121 GB, free: 6.734 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat