Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",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.001629/0.001629, allocations: 181.5 kB / 13.66 MB, free: 1.664 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.027/2.027, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001081/0.001081, allocations: 86.64 kB / 267.5 MB, free: 14.1 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.2896/0.2896, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.335e-05/6.351e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.148, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.448/8.596, allocations: 2.772 GB / 3.244 GB, free: 71.57 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/8.596, allocations: 90.34 kB / 3.245 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.233/9.829, allocations: 236.9 MB / 3.476 GB, free: 52.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.673e-06/9.83, allocations: 0 / 3.476 GB, free: 52.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.939e-05/9.83, allocations: 12 kB / 3.476 GB, free: 52.72 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.00576/9.835, allocations: 1.285 MB / 3.477 GB, free: 51.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/9.835, allocations: 12.03 kB / 3.477 GB, free: 51.37 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/9.836, allocations: 70.53 kB / 3.477 GB, free: 51.29 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/9.838, allocations: 255.2 kB / 3.478 GB, free: 51.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009284/9.839, allocations: 412.1 kB / 3.478 GB, free: 50.61 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.816e-05/9.839, allocations: 32.78 kB / 3.478 GB, free: 50.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.237e-05/9.839, allocations: 28 kB / 3.478 GB, free: 50.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/9.841, allocations: 0.632 MB / 3.479 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/9.841, allocations: 0 / 3.479 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.505e-05/9.841, allocations: 19.95 kB / 3.479 GB, free: 49.85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/9.841, allocations: 8 kB / 3.479 GB, free: 49.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/9.843, allocations: 0.5338 MB / 3.479 GB, free: 49.31 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.003922/9.847, allocations: 2.723 MB / 3.482 GB, free: 46.34 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/9.849, allocations: 0.5024 MB / 3.482 GB, free: 45.83 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/9.85, allocations: 140.8 kB / 3.482 GB, free: 45.69 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09357/9.943, allocations: 24.15 MB / 3.506 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/9.943, allocations: 36.91 kB / 3.506 GB, free: 18.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 3.076e-06/9.943, allocations: 0 / 3.506 GB, free: 18.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.002898/9.946, allocations: 0.6684 MB / 3.507 GB, free: 17.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/9.946, allocations: 106.8 kB / 3.507 GB, free: 17.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005044/9.947, allocations: 339.1 kB / 3.507 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/9.947, allocations: 33.7 kB / 3.507 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/9.947, allocations: 270.6 kB / 3.507 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/9.947, allocations: 94.66 kB / 3.508 GB, free: 17.06 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/9.947, allocations: 8 kB / 3.508 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.716e-05/9.947, allocations: 330.8 kB / 3.508 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/9.947, allocations: 111.9 kB / 3.508 GB, free: 16.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003391/9.948, allocations: 227.4 kB / 3.508 GB, free: 16.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/9.948, allocations: 137.2 kB / 3.508 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/9.948, allocations: 4 kB / 3.508 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009107/9.949, allocations: 377 kB / 3.509 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002612/9.949, allocations: 1.399 MB / 3.51 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/9.949, allocations: 4 kB / 3.51 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/9.949, allocations: 4 kB / 3.51 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007331/9.95, allocations: 107.8 kB / 3.51 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/9.95, allocations: 11.98 kB / 3.51 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006906/9.951, allocations: 87.42 kB / 3.51 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.041e-05/9.951, allocations: 16 kB / 3.51 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/9.951, allocations: 4 kB / 3.51 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007744/9.952, allocations: 331.8 kB / 3.511 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/9.952, allocations: 4 kB / 3.511 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/9.952, allocations: 4 kB / 3.511 GB, free: 13.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007009/9.952, allocations: 112.3 kB / 3.511 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/9.953, allocations: 15.92 kB / 3.511 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004646/9.953, allocations: 47.81 kB / 3.511 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/9.953, allocations: 24 kB / 3.511 GB, free: 13.56 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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.0001276/9.953, allocations: 136.8 kB / 3.511 GB, free: 13.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/9.953, allocations: 43.44 kB / 3.511 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/9.956, allocations: 1.904 MB / 3.513 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.525e-05/9.956, allocations: 35.94 kB / 3.513 GB, free: 11.42 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/9.956, allocations: 3.953 kB / 3.513 GB, free: 11.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/9.956, allocations: 11.98 kB / 3.513 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/9.957, allocations: 1.047 MB / 3.514 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/9.957, allocations: 0 / 3.514 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006095/9.958, allocations: 91.86 kB / 3.514 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/9.958, allocations: 0 / 3.514 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/9.958, allocations: 12 kB / 3.514 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/9.958, allocations: 0 / 3.514 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/9.958, allocations: 0 / 3.514 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/9.959, allocations: 1.042 MB / 3.515 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/9.96, allocations: 267.3 kB / 3.515 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/9.96, allocations: 4 kB / 3.515 GB, free: 8.867 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/9.96, allocations: 43.97 kB / 3.515 GB, free: 8.824 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/9.961, allocations: 39.88 kB / 3.515 GB, free: 8.785 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.819e-05/9.961, allocations: 8 kB / 3.515 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005324/9.961, allocations: 381.4 kB / 3.516 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.41e-07/9.961, allocations: 0 / 3.516 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005409/9.967, allocations: 1.159 MB / 3.517 GB, free: 7.246 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01069/9.977, allocations: 2.916 MB / 3.52 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001548/9.979, allocations: 0.7298 MB / 3.52 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.748e-06/9.979, allocations: 0 / 3.52 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006293/9.98, allocations: 490.2 kB / 3.521 GB, free: 3.098 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/9.982, allocations: 228.9 kB / 3.521 GB, free: 2.879 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/9.987, allocations: 1.727 MB / 3.523 GB, free: 1.098 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/9.988, allocations: 0.9993 MB / 3.524 GB, free: 72 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3548/10.34, allocations: 283.6 kB / 3.524 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of SimCode: time 1.513e-06/10.34, allocations: 1.5 kB / 3.524 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.649/13.99, allocations: 30.88 MB / 3.554 GB, free: 84.87 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat