Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",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.002228/0.002228, allocations: 177.6 kB / 8.005 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.887/1.887, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 82.64 kB / 261.7 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2555/0.2555, allocations: 43.49 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.286e-05/2.289e-05, allocations: 0 / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1482, allocations: 58.86 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.337/7.486, allocations: 2.772 GB / 3.238 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/7.486, allocations: 84.55 kB / 3.238 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.442/9.928, allocations: 0.6312 GB / 3.869 GB, free: 43.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.683e-06/9.928, allocations: 0 / 3.869 GB, free: 43.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001323/9.928, allocations: 46.3 kB / 3.869 GB, free: 43.48 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.0109/9.939, allocations: 2.444 MB / 3.872 GB, free: 42.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/9.939, allocations: 7.875 kB / 3.872 GB, free: 42.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00817/9.947, allocations: 0.9569 MB / 3.873 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002516/9.95, allocations: 0.9883 MB / 3.874 GB, free: 41.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.915e-05/9.95, allocations: 56.31 kB / 3.874 GB, free: 41.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/9.95, allocations: 67.69 kB / 3.874 GB, free: 41.98 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002154/9.952, allocations: 1.219 MB / 3.875 GB, free: 41.97 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/9.955, allocations: 1.433 MB / 3.876 GB, free: 41.53 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/9.955, allocations: 6.219 kB / 3.876 GB, free: 41.53 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/9.955, allocations: 7.844 kB / 3.876 GB, free: 41.53 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/9.955, allocations: 31.53 kB / 3.876 GB, free: 41.53 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1391/10.09, allocations: 70.54 MB / 3.945 GB, free: 29.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001959/10.1, allocations: 0.8034 MB / 3.946 GB, free: 29.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009505/10.1, allocations: 404.9 kB / 3.946 GB, free: 29.23 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9738/11.07, allocations: 277.1 MB / 4.217 GB, free: 1.016 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/11.07, allocations: 48.42 kB / 4.217 GB, free: 0.9688 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=39): time 2.955e-06/11.07, allocations: 0 / 4.217 GB, free: 0.9688 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39): time 0.005906/11.08, allocations: 1.491 MB / 4.219 GB, free: 172 kB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4448/11.52, allocations: 268.5 kB / 4.219 GB, free: 157.4 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/11.52, allocations: 0.9474 MB / 4.22 GB, free: 157.2 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001897/11.52, allocations: 27.59 kB / 4.22 GB, free: 157.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005956/11.52, allocations: 0.7724 MB / 4.22 GB, free: 156.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/11.52, allocations: 143 kB / 4.221 GB, free: 156.9 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-05/11.52, allocations: 0 / 4.221 GB, free: 156.9 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001018/11.52, allocations: 348.8 kB / 4.221 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005837/11.53, allocations: 327.5 kB / 4.221 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006932/11.53, allocations: 0.7178 MB / 4.222 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003045/11.53, allocations: 0.7422 MB / 4.223 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/11.53, allocations: 3.094 kB / 4.223 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004298/11.53, allocations: 1.447 MB / 4.224 GB, free: 156 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008716/11.53, allocations: 4.452 MB / 4.228 GB, free: 151.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/11.53, allocations: 11 kB / 4.228 GB, free: 151.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.948e-05/11.53, allocations: 18.62 kB / 4.228 GB, free: 151.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/11.54, allocations: 356.6 kB / 4.229 GB, free: 151.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.558e-05/11.54, allocations: 35.28 kB / 4.229 GB, free: 151.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/11.54, allocations: 343.1 kB / 4.229 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/11.54, allocations: 69.39 kB / 4.229 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/11.54, allocations: 7.812 kB / 4.229 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003414/11.54, allocations: 1.168 MB / 4.23 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/11.54, allocations: 13.59 kB / 4.23 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/11.54, allocations: 18.97 kB / 4.23 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/11.54, allocations: 353.5 kB / 4.231 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.795e-05/11.54, allocations: 28.03 kB / 4.231 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/11.54, allocations: 236.4 kB / 4.231 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/11.54, allocations: 65.36 kB / 4.231 GB, free: 151.3 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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.0003559/11.55, allocations: 153.4 kB / 4.231 GB, free: 151.2 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002671/11.55, allocations: 0.6796 MB / 4.232 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/11.55, allocations: 117.5 kB / 4.232 GB, free: 151 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/11.55, allocations: 1.13 MB / 4.233 GB, free: 150.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/11.55, allocations: 3.188 kB / 4.233 GB, free: 150.9 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/11.55, allocations: 1.688 kB / 4.233 GB, free: 150.9 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/11.55, allocations: 1.875 kB / 4.233 GB, free: 150.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003731/11.55, allocations: 2.031 MB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/11.55, allocations: 4.609 kB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/11.55, allocations: 94.28 kB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.981e-05/11.55, allocations: 6.344 kB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/11.55, allocations: 12.33 kB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.907e-05/11.55, allocations: 8.562 kB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/11.55, allocations: 6.906 kB / 4.235 GB, free: 150.4 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/11.56, allocations: 0.9532 MB / 4.236 GB, free: 149.8 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009471/11.56, allocations: 445.7 kB / 4.237 GB, free: 149.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/11.56, allocations: 8.812 kB / 4.237 GB, free: 149.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/11.56, allocations: 108.9 kB / 4.237 GB, free: 149.6 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/11.56, allocations: 36.41 kB / 4.237 GB, free: 149.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/11.56, allocations: 27.34 kB / 4.237 GB, free: 149.6 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.002302/11.56, allocations: 1.154 MB / 4.238 GB, free: 149.5 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.343e-06/11.56, allocations: 0 / 4.238 GB, free: 149.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01056/11.57, allocations: 1.759 MB / 4.24 GB, free: 149.3 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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 Backend phase and start with SimCode phase: time 0.01135/11.58, allocations: 4.564 MB / 4.244 GB, free: 147 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002671/11.59, allocations: 1.222 MB / 4.245 GB, free: 147 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/11.59, allocations: 1.094 kB / 4.245 GB, free: 147 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003001/11.59, allocations: 156 kB / 4.245 GB, free: 147 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/11.59, allocations: 420 kB / 4.246 GB, free: 147 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007441/11.6, allocations: 2.182 MB / 4.248 GB, free: 146.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007487/11.6, allocations: 1.254 MB / 4.249 GB, free: 145.6 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.003809/11.6, allocations: 3.025 MB / 4.252 GB, free: 145.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006411/11.6, allocations: 0.5613 MB / 4.253 GB, free: 145.5 MB / 0.6198 GB Notification: Performance of SimCode: time 1.252e-06/11.6, allocations: 0 / 4.253 GB, free: 145.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/11.7, allocations: 56.69 MB / 4.308 GB, free: 142.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/11.71, allocations: 205.3 kB / 4.308 GB, free: 142.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.167/15.87, allocations: 0 / 4.308 GB, free: 142.4 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat