Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009236/0.0009244, allocations: 93.08 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2703/0.2703, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.854e-05, allocations: 4 kB / 453.3 MB, free: 75.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1486, allocations: 63.25 MB / 0.5045 GB, free: 12.51 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.788/7.937, allocations: 2.778 GB / 3.283 GB, free: 62.04 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/7.937, allocations: 84.69 kB / 3.283 GB, free: 61.99 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.362/10.3, allocations: 0.6385 GB / 3.921 GB, free: 39.04 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.673e-06/10.3, allocations: 0 / 3.921 GB, free: 39.04 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001053/10.3, allocations: 39.75 kB / 3.921 GB, free: 39.03 MB / 0.5417 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.009959/10.31, allocations: 2.457 MB / 3.924 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/10.31, allocations: 11.31 kB / 3.924 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008536/10.32, allocations: 0.9491 MB / 3.925 GB, free: 37.04 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002928/10.32, allocations: 0.9993 MB / 3.926 GB, free: 36.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/10.32, allocations: 51.44 kB / 3.926 GB, free: 36.28 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/10.32, allocations: 66.09 kB / 3.926 GB, free: 36.28 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002506/10.32, allocations: 1.225 MB / 3.927 GB, free: 35.74 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00219/10.33, allocations: 1.433 MB / 3.928 GB, free: 34.16 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/10.33, allocations: 11.72 kB / 3.928 GB, free: 34.15 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/10.33, allocations: 4 kB / 3.928 GB, free: 34.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/10.33, allocations: 32 kB / 3.928 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5473/10.87, allocations: 76.26 MB / 4.003 GB, free: 44.17 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/10.88, allocations: 0.7919 MB / 4.004 GB, free: 44.14 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006724/10.88, allocations: 402.4 kB / 4.004 GB, free: 44.12 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9466/11.82, allocations: 308.5 MB / 4.305 GB, free: 81.93 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/11.82, allocations: 49.11 kB / 4.305 GB, free: 81.89 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=39): time 3.587e-06/11.82, allocations: 0 / 4.305 GB, free: 81.89 MB / 0.6511 GB Notification: Performance of matching and sorting (n=39): time 0.005195/11.83, allocations: 1.488 MB / 4.307 GB, free: 81.84 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.515e-05/11.83, allocations: 263.8 kB / 4.307 GB, free: 81.53 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/11.83, allocations: 0.9515 MB / 4.308 GB, free: 81.37 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.556e-05/11.83, allocations: 27.48 kB / 4.308 GB, free: 81.34 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005412/11.83, allocations: 0.7687 MB / 4.309 GB, free: 81.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/11.83, allocations: 146.2 kB / 4.309 GB, free: 80.95 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/11.83, allocations: 1.406 kB / 4.309 GB, free: 80.95 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.88e-05/11.83, allocations: 356.8 kB / 4.309 GB, free: 80.64 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004527/11.83, allocations: 332.3 kB / 4.31 GB, free: 80.63 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006226/11.83, allocations: 0.7149 MB / 4.31 GB, free: 80.16 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002935/11.83, allocations: 0.7361 MB / 4.311 GB, free: 80.14 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/11.83, allocations: 3.531 kB / 4.311 GB, free: 80.14 MB / 0.6511 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004083/11.84, allocations: 1.445 MB / 4.312 GB, free: 80.03 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008791/11.84, allocations: 4.449 MB / 4.317 GB, free: 75.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/11.84, allocations: 15.17 kB / 4.317 GB, free: 75.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.519e-05/11.84, allocations: 19.09 kB / 4.317 GB, free: 75.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/11.84, allocations: 352.4 kB / 4.317 GB, free: 75.36 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/11.84, allocations: 24.67 kB / 4.317 GB, free: 75.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002129/11.84, allocations: 360.4 kB / 4.317 GB, free: 75.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/11.84, allocations: 65.55 kB / 4.318 GB, free: 75.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/11.84, allocations: 3.844 kB / 4.318 GB, free: 75.3 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003192/11.85, allocations: 1.173 MB / 4.319 GB, free: 75.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/11.85, allocations: 11.97 kB / 4.319 GB, free: 75.27 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/11.85, allocations: 20.08 kB / 4.319 GB, free: 75.27 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/11.85, allocations: 352.7 kB / 4.319 GB, free: 75.26 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/11.85, allocations: 26.73 kB / 4.319 GB, free: 75.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/11.85, allocations: 236.1 kB / 4.319 GB, free: 75.22 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/11.85, allocations: 72.64 kB / 4.319 GB, free: 75.22 MB / 0.6511 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.00033/11.85, allocations: 142.7 kB / 4.319 GB, free: 75.11 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002468/11.85, allocations: 0.6815 MB / 4.32 GB, free: 75.02 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/11.85, allocations: 119.7 kB / 4.32 GB, free: 74.96 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/11.85, allocations: 1.123 MB / 4.321 GB, free: 74.78 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/11.85, allocations: 3.656 kB / 4.321 GB, free: 74.78 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/11.85, allocations: 3.562 kB / 4.321 GB, free: 74.78 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/11.85, allocations: 0 / 4.321 GB, free: 74.78 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/11.86, allocations: 2.027 MB / 4.323 GB, free: 74.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/11.86, allocations: 3.75 kB / 4.323 GB, free: 74.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/11.86, allocations: 99.59 kB / 4.323 GB, free: 74.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/11.86, allocations: 7.469 kB / 4.323 GB, free: 74.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/11.86, allocations: 7.969 kB / 4.323 GB, free: 74.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/11.86, allocations: 12.58 kB / 4.323 GB, free: 74.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/11.86, allocations: 8.766 kB / 4.323 GB, free: 74.33 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/11.86, allocations: 0.9516 MB / 4.324 GB, free: 73.64 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006228/11.86, allocations: 454.7 kB / 4.325 GB, free: 73.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/11.86, allocations: 9.531 kB / 4.325 GB, free: 73.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008908/11.86, allocations: 103.5 kB / 4.325 GB, free: 73.46 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.615e-05/11.86, allocations: 37.25 kB / 4.325 GB, free: 73.46 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/11.86, allocations: 22.86 kB / 4.325 GB, free: 73.46 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.00135/11.86, allocations: 1.155 MB / 4.326 GB, free: 73.35 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.5e-07/11.86, allocations: 5.656 kB / 4.326 GB, free: 73.35 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.007383/11.87, allocations: 1.768 MB / 4.328 GB, free: 73.23 MB / 0.6511 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.01096/11.88, allocations: 4.588 MB / 4.332 GB, free: 70.79 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002426/11.88, allocations: 1.215 MB / 4.334 GB, free: 70.77 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/11.88, allocations: 3.094 kB / 4.334 GB, free: 70.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/11.88, allocations: 154.6 kB / 4.334 GB, free: 70.77 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/11.88, allocations: 427.7 kB / 4.334 GB, free: 70.74 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007265/11.89, allocations: 2.191 MB / 4.336 GB, free: 70.01 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/11.89, allocations: 1.258 MB / 4.337 GB, free: 69.28 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.003555/11.9, allocations: 3.019 MB / 4.34 GB, free: 69.21 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006268/11.9, allocations: 0.5647 MB / 4.341 GB, free: 69.21 MB / 0.6511 GB Notification: Performance of SimCode: time 1.492e-06/11.9, allocations: 0 / 4.341 GB, free: 69.21 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1086/12.01, allocations: 56.79 MB / 4.396 GB, free: 52.35 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/12.01, allocations: 184.7 kB / 4.397 GB, free: 52.16 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.333/16.34, allocations: 0 / 4.397 GB, free: 52.16 MB / 0.6511 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat