Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001826/0.001826, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.753/1.753, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 89.09 kB / 297.2 MB, free: 6.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5145/0.5145, allocations: 45.23 MB / 394.6 MB, free: 31.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003754, allocations: 12 kB / 468.5 MB, free: 7.664 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5972/0.5976, allocations: 63.24 MB / 0.5193 GB, free: 43.69 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.196/7.794, allocations: 2.778 GB / 3.297 GB, free: 148.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003544/7.794, allocations: 87.44 kB / 3.297 GB, free: 148.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.9352/8.729, allocations: 240.3 MB / 3.532 GB, free: 86.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.637e-06/8.729, allocations: 0.8438 kB / 3.532 GB, free: 86.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.775e-05/8.73, allocations: 16.83 kB / 3.532 GB, free: 86.1 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.006095/8.736, allocations: 1.348 MB / 3.533 GB, free: 85.46 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/8.736, allocations: 9.5 kB / 3.533 GB, free: 85.46 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001976/8.736, allocations: 69.53 kB / 3.533 GB, free: 85.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002143/8.738, allocations: 265 kB / 3.534 GB, free: 85.4 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009229/8.739, allocations: 416.8 kB / 3.534 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/8.739, allocations: 27.59 kB / 3.534 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-05/8.739, allocations: 34.59 kB / 3.534 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/8.741, allocations: 0.6373 MB / 3.535 GB, free: 85.05 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/8.741, allocations: 0 / 3.535 GB, free: 85.05 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.068e-05/8.741, allocations: 20.45 kB / 3.535 GB, free: 85.04 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/8.741, allocations: 5.844 kB / 3.535 GB, free: 85.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/8.743, allocations: 0.5913 MB / 3.535 GB, free: 85.04 MB / 0.5417 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.003291/8.746, allocations: 2.721 MB / 3.538 GB, free: 83.15 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/8.748, allocations: 0.5479 MB / 3.538 GB, free: 83.13 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04742/8.795, allocations: 26.63 MB / 3.564 GB, free: 65.86 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/8.795, allocations: 39.75 kB / 3.564 GB, free: 65.82 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 3.156e-06/8.795, allocations: 0 / 3.564 GB, free: 65.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=28): time 0.002966/8.798, allocations: 0.8215 MB / 3.565 GB, free: 65.76 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/8.798, allocations: 106.5 kB / 3.565 GB, free: 65.64 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/8.799, allocations: 344.1 kB / 3.566 GB, free: 65.53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.251e-05/8.799, allocations: 35.17 kB / 3.566 GB, free: 65.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/8.799, allocations: 229.7 kB / 3.566 GB, free: 65.39 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.694e-05/8.799, allocations: 94.64 kB / 3.566 GB, free: 65.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.05e-05/8.799, allocations: 4.781 kB / 3.566 GB, free: 65.34 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.838e-05/8.799, allocations: 352.5 kB / 3.566 GB, free: 65.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/8.8, allocations: 155.4 kB / 3.567 GB, free: 65.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/8.8, allocations: 277.6 kB / 3.567 GB, free: 64.88 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004573/8.8, allocations: 173.3 kB / 3.567 GB, free: 64.88 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/8.801, allocations: 3.234 kB / 3.567 GB, free: 64.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001199/8.802, allocations: 498.5 kB / 3.567 GB, free: 64.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003858/8.802, allocations: 1.403 MB / 3.569 GB, free: 63.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/8.802, allocations: 3.188 kB / 3.569 GB, free: 63.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/8.802, allocations: 8.938 kB / 3.569 GB, free: 63.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/8.803, allocations: 106 kB / 3.569 GB, free: 63.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/8.803, allocations: 6.406 kB / 3.569 GB, free: 63.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005428/8.803, allocations: 80.78 kB / 3.569 GB, free: 63.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/8.803, allocations: 18.09 kB / 3.569 GB, free: 63.36 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/8.803, allocations: 4.031 kB / 3.569 GB, free: 63.36 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009776/8.804, allocations: 421.8 kB / 3.569 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/8.804, allocations: 3.969 kB / 3.569 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/8.804, allocations: 7.375 kB / 3.569 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003817/8.805, allocations: 111.1 kB / 3.57 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/8.805, allocations: 10.64 kB / 3.57 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004528/8.805, allocations: 71.91 kB / 3.57 GB, free: 63.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/8.805, allocations: 18.94 kB / 3.57 GB, free: 63.34 MB / 0.5417 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 () * Number of clocked 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.0002802/8.805, allocations: 241.1 kB / 3.57 GB, free: 63.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/8.806, allocations: 41.56 kB / 3.57 GB, free: 63.13 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0024/8.808, allocations: 1.961 MB / 3.572 GB, free: 62.92 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.004e-05/8.808, allocations: 28.36 kB / 3.572 GB, free: 62.92 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/8.808, allocations: 7.703 kB / 3.572 GB, free: 62.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/8.808, allocations: 0.75 kB / 3.572 GB, free: 62.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/8.809, allocations: 1.05 MB / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/8.809, allocations: 0 / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/8.81, allocations: 90.48 kB / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/8.81, allocations: 0 / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/8.81, allocations: 11.33 kB / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/8.81, allocations: 3.281 kB / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/8.81, allocations: 0 / 3.573 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/8.811, allocations: 1.113 MB / 3.574 GB, free: 62.45 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/8.812, allocations: 272 kB / 3.574 GB, free: 62.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/8.812, allocations: 8.531 kB / 3.574 GB, free: 62.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/8.812, allocations: 39.61 kB / 3.574 GB, free: 62.27 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/8.812, allocations: 35.42 kB / 3.574 GB, free: 62.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/8.812, allocations: 15.83 kB / 3.574 GB, free: 62.27 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005752/8.813, allocations: 387.8 kB / 3.575 GB, free: 62.18 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.4e-07/8.813, allocations: 1.031 kB / 3.575 GB, free: 62.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006942/8.82, allocations: 1.178 MB / 3.576 GB, free: 62 MB / 0.5417 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 () * Number of clocked 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.01316/8.833, allocations: 3.012 MB / 3.579 GB, free: 61.04 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00223/8.835, allocations: 0.8531 MB / 3.58 GB, free: 61.02 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/8.835, allocations: 4.531 kB / 3.58 GB, free: 61.02 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009167/8.836, allocations: 0.5188 MB / 3.58 GB, free: 61.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/8.838, allocations: 219 kB / 3.58 GB, free: 61.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008156/8.846, allocations: 5.116 MB / 3.585 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00058/8.847, allocations: 1 MB / 3.586 GB, free: 56.64 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009625/8.848, allocations: 0.5465 MB / 3.587 GB, free: 56.62 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/8.848, allocations: 287 kB / 3.587 GB, free: 56.62 MB / 0.5417 GB Notification: Performance of SimCode: time 1.092e-06/8.848, allocations: 0 / 3.587 GB, free: 56.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07632/8.924, allocations: 41.03 MB / 3.627 GB, free: 54.94 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/8.925, allocations: 234.6 kB / 3.628 GB, free: 54.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.489/12.41, allocations: 3.75 kB / 3.628 GB, free: 54.7 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat