Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.00159/0.001589, allocations: 185.4 kB / 16.4 MB, free: 5.746 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.115/2.115, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001225/0.001224, allocations: 94.86 kB / 270.9 MB, free: 8.371 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.543/0.543, allocations: 43.55 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006494/0.0006495, allocations: 15.98 kB / 431.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1425, allocations: 58.84 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.784/8.926, allocations: 2.754 GB / 3.233 GB, free: 55.59 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/8.927, allocations: 82.64 kB / 3.233 GB, free: 55.54 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.197/10.12, allocations: 217.4 MB / 3.445 GB, free: 42.01 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.753e-06/10.12, allocations: 4 kB / 3.445 GB, free: 42.01 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.117e-05/10.12, allocations: 8 kB / 3.445 GB, free: 42 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005852/10.13, allocations: 1.223 MB / 3.446 GB, free: 40.72 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/10.13, allocations: 15.97 kB / 3.446 GB, free: 40.71 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/10.13, allocations: 66.53 kB / 3.447 GB, free: 40.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002487/10.13, allocations: 227.2 kB / 3.447 GB, free: 40.41 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000788/10.13, allocations: 366.1 kB / 3.447 GB, free: 40.01 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.594e-05/10.13, allocations: 25.69 kB / 3.447 GB, free: 39.99 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/10.13, allocations: 35.92 kB / 3.447 GB, free: 39.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002335/10.14, allocations: 0.607 MB / 3.448 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/10.14, allocations: 7.938 kB / 3.448 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.308e-05/10.14, allocations: 16.34 kB / 3.448 GB, free: 39.28 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/10.14, allocations: 15.95 kB / 3.448 GB, free: 39.27 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002659/10.14, allocations: 0.5758 MB / 3.448 GB, free: 38.69 MB / 0.4948 GB 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.003945/10.14, allocations: 2.601 MB / 3.451 GB, free: 35.85 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/10.15, allocations: 490.2 kB / 3.451 GB, free: 35.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07333/10.22, allocations: 24.07 MB / 3.475 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/10.22, allocations: 34.56 kB / 3.475 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 2.665e-06/10.22, allocations: 0 / 3.475 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.004607/10.22, allocations: 0.8577 MB / 3.476 GB, free: 7.488 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/10.22, allocations: 102.8 kB / 3.476 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004052/10.22, allocations: 275.7 kB / 3.476 GB, free: 7.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/10.22, allocations: 37.7 kB / 3.476 GB, free: 7.047 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/10.22, allocations: 254.6 kB / 3.476 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.479e-05/10.22, allocations: 82.84 kB / 3.476 GB, free: 6.715 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/10.22, allocations: 4 kB / 3.476 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.67e-05/10.22, allocations: 322.8 kB / 3.477 GB, free: 6.387 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007294/10.23, allocations: 155.9 kB / 3.477 GB, free: 6.234 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007804/10.23, allocations: 252.3 kB / 3.477 GB, free: 5.949 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007666/10.23, allocations: 167.9 kB / 3.477 GB, free: 5.785 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/10.23, allocations: 4 kB / 3.477 GB, free: 5.781 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001737/10.23, allocations: 453.7 kB / 3.478 GB, free: 5.332 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/10.23, allocations: 7.953 kB / 3.478 GB, free: 5.324 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/10.23, allocations: 4 kB / 3.478 GB, free: 5.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/10.23, allocations: 4 kB / 3.478 GB, free: 5.316 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/10.23, allocations: 104.2 kB / 3.478 GB, free: 5.215 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/10.23, allocations: 7.984 kB / 3.478 GB, free: 5.207 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000647/10.23, allocations: 63.72 kB / 3.478 GB, free: 5.145 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/10.23, allocations: 15.98 kB / 3.478 GB, free: 5.129 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0003003/10.23, allocations: 169.6 kB / 3.478 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.967e-05/10.23, allocations: 35.62 kB / 3.478 GB, free: 4.918 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/10.23, allocations: 1.946 MB / 3.48 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.766e-05/10.23, allocations: 27.95 kB / 3.48 GB, free: 2.934 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/10.23, allocations: 0 / 3.48 GB, free: 2.934 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/10.23, allocations: 3.984 kB / 3.48 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/10.24, allocations: 0.9999 MB / 3.481 GB, free: 1.875 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/10.24, allocations: 0 / 3.481 GB, free: 1.875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006677/10.24, allocations: 95.86 kB / 3.481 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/10.24, allocations: 0 / 3.481 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/10.24, allocations: 8 kB / 3.481 GB, free: 1.773 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.684e-06/10.24, allocations: 3.953 kB / 3.481 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/10.24, allocations: 0 / 3.481 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/10.24, allocations: 1.108 MB / 3.482 GB, free: 0.6445 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002645/10.24, allocations: 223.5 kB / 3.482 GB, free: 416 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.94e-05/10.24, allocations: 8 kB / 3.482 GB, free: 408 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006003/10.24, allocations: 59.83 kB / 3.483 GB, free: 348 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/10.24, allocations: 39.91 kB / 3.483 GB, free: 308 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.723e-05/10.24, allocations: 11.98 kB / 3.483 GB, free: 296 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.4019/10.64, allocations: 320.8 kB / 3.483 GB, free: 71.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.71e-07/10.64, allocations: 1.469 kB / 3.483 GB, free: 71.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005536/10.65, allocations: 1.007 MB / 3.484 GB, free: 71.39 MB / 0.4948 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,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * 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.01338/10.66, allocations: 2.92 MB / 3.487 GB, free: 70.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002254/10.66, allocations: 0.6274 MB / 3.487 GB, free: 70.69 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/10.66, allocations: 0.8125 kB / 3.487 GB, free: 70.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001237/10.66, allocations: 0.5308 MB / 3.488 GB, free: 70.69 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/10.67, allocations: 203.1 kB / 3.488 GB, free: 70.68 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/10.68, allocations: 5.232 MB / 3.493 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/10.68, allocations: 0.9823 MB / 3.494 GB, free: 67.24 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004863/10.68, allocations: 251.4 kB / 3.494 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of SimCode: time 1.133e-06/10.68, allocations: 1.031 kB / 3.494 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.43/14.11, allocations: 28.73 MB / 3.522 GB, free: 65.64 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat