Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009409/0.0009409, allocations: 102.4 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009548/0.0009548, allocations: 201 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.0002847, allocations: 4 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1283, allocations: 63.46 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02688/0.1552, allocations: 23.85 MB / 0.4935 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01433/0.1695, allocations: 11.38 MB / 0.5046 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005195/0.1701, allocations: 11.88 kB / 0.5047 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009034/0.171, allocations: 207.1 kB / 0.5049 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2816/0.4526, allocations: 2.823 MB / 0.5076 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006238/0.4589, allocations: 1.906 MB / 0.5095 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.4601, allocations: 0.5403 MB / 0.51 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004265/0.4606, allocations: 201.1 kB / 0.5102 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008609/0.4614, allocations: 407.9 kB / 0.5106 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.4617, allocations: 196 kB / 0.5108 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.4618, allocations: 15.81 kB / 0.5108 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01599/0.4778, allocations: 7.02 MB / 0.5176 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.478, allocations: 79.33 kB / 0.5177 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.4783, allocations: 103.6 kB / 0.5178 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007384/0.4857, allocations: 2.952 MB / 0.5207 GB, free: 12.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.4857, allocations: 0.9062 kB / 0.5207 GB, free: 12.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4857, allocations: 0 / 0.5207 GB, free: 12.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.842e-06/0.4858, allocations: 0 / 0.5207 GB, free: 12.34 MB / 382.1 MB 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.004327/0.4901, allocations: 1.164 MB / 0.5218 GB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4902, allocations: 10.56 kB / 0.5218 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.042e-05/0.4902, allocations: 66.05 kB / 0.5219 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001656/0.4919, allocations: 223.7 kB / 0.5221 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004597/0.4924, allocations: 347 kB / 0.5224 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.4924, allocations: 28.94 kB / 0.5225 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.4925, allocations: 29.34 kB / 0.5225 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.4939, allocations: 0.5988 MB / 0.5231 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.494, allocations: 2.625 kB / 0.5231 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.03e-05/0.494, allocations: 14.34 kB / 0.5231 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.494, allocations: 8.281 kB / 0.5231 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.4956, allocations: 0.5651 MB / 0.5237 GB, free: 11.09 MB / 382.1 MB 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.002596/0.4982, allocations: 2.632 MB / 0.5262 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.4997, allocations: 494.6 kB / 0.5267 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04869/0.5484, allocations: 26.99 MB / 0.5531 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.5485, allocations: 37.55 kB / 0.5531 GB, free: 1.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.933e-06/0.5485, allocations: 0 / 0.5531 GB, free: 1.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002805/0.5513, allocations: 0.8522 MB / 0.5539 GB, free: 384 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.5513, allocations: 106.8 kB / 0.554 GB, free: 252 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.5517, allocations: 311.4 kB / 0.5543 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.5518, allocations: 36.05 kB / 0.5544 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.5519, allocations: 206.5 kB / 0.5546 GB, free: 15.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.552, allocations: 79.81 kB / 0.5546 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.552, allocations: 11.25 kB / 0.5546 GB, free: 15.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5521, allocations: 338.2 kB / 0.555 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.5525, allocations: 150.6 kB / 0.5551 GB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.5529, allocations: 250.5 kB / 0.5554 GB, free: 15.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003868/0.5533, allocations: 173.5 kB / 0.5555 GB, free: 14.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.5533, allocations: 0 / 0.5555 GB, free: 14.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009129/0.5543, allocations: 450.7 kB / 0.5559 GB, free: 14.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.5543, allocations: 4 kB / 0.556 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.5543, allocations: 7.375 kB / 0.556 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.5543, allocations: 7.953 kB / 0.556 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.5547, allocations: 93.53 kB / 0.5561 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.5547, allocations: 4 kB / 0.5561 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003647/0.5551, allocations: 62.97 kB / 0.5561 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.5551, allocations: 19.67 kB / 0.5561 GB, free: 14.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0001884/0.5553, allocations: 152.2 kB / 0.5563 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.02e-05/0.5554, allocations: 48.98 kB / 0.5563 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002285/0.5577, allocations: 1.935 MB / 0.5582 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.593e-05/0.5577, allocations: 28.83 kB / 0.5582 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.5577, allocations: 6.578 kB / 0.5583 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.5577, allocations: 7.984 kB / 0.5583 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009945/0.5587, allocations: 1.02 MB / 0.5593 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.5587, allocations: 0 / 0.5593 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/0.5591, allocations: 77.81 kB / 0.5593 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.5591, allocations: 4 kB / 0.5593 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.5591, allocations: 7.875 kB / 0.5593 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5591, allocations: 4 kB / 0.5593 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5591, allocations: 2.938 kB / 0.5593 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.5605, allocations: 1.105 MB / 0.5604 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.5607, allocations: 221.8 kB / 0.5606 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.957e-05/0.5608, allocations: 3.25 kB / 0.5606 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.5611, allocations: 39.31 kB / 0.5607 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5612, allocations: 37.95 kB / 0.5607 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.5612, allocations: 14.3 kB / 0.5607 GB, free: 10.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003355/0.5616, allocations: 321.2 kB / 0.561 GB, free: 10.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.92e-07/0.5616, allocations: 0 / 0.561 GB, free: 10.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005719/0.5673, allocations: 1.008 MB / 0.562 GB, free: 9.781 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * 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.009496/0.5768, allocations: 2.712 MB / 0.5647 GB, free: 7.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.5782, allocations: 0.6198 MB / 0.5653 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.5782, allocations: 0 / 0.5653 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006806/0.5789, allocations: 0.5237 MB / 0.5658 GB, free: 6.758 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.5801, allocations: 194.7 kB / 0.566 GB, free: 6.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.5913, allocations: 5.163 MB / 0.571 GB, free: 1.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/0.5919, allocations: 0.978 MB / 0.572 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005758/0.5924, allocations: 277.4 kB / 0.5722 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.5927, allocations: 257.2 kB / 0.5725 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5927, allocations: 0 / 0.5725 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07854/0.6713, allocations: 46.25 MB / 0.6176 GB, free: 2.621 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/0.6716, allocations: 235.3 kB / 0.6179 GB, free: 2.383 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.157/4.829, allocations: 0 / 0.6179 GB, free: 2.383 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat