Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001205/0.001205, allocations: 95.95 kB / 16.98 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.001431/0.001432, allocations: 200.9 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.404/1.404, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002986, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1254, allocations: 63.47 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02924/0.1547, allocations: 23.86 MB / 0.4935 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01355/0.1683, allocations: 11.38 MB / 0.5047 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004474/0.1688, allocations: 11.94 kB / 0.5047 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006765/0.1695, allocations: 207.1 kB / 0.5049 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2575/0.4269, allocations: 2.819 MB / 0.5076 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005847/0.4328, allocations: 1.908 MB / 0.5095 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.4341, allocations: 0.5408 MB / 0.51 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004607/0.4346, allocations: 210.5 kB / 0.5102 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009508/0.4355, allocations: 411.4 kB / 0.5106 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.4358, allocations: 195.7 kB / 0.5108 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.502e-05/0.4359, allocations: 18.16 kB / 0.5108 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01739/0.4533, allocations: 7.023 MB / 0.5177 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.4536, allocations: 79.56 kB / 0.5177 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003156/0.4539, allocations: 103.4 kB / 0.5178 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009836/0.4637, allocations: 2.956 MB / 0.5207 GB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.4638, allocations: 0 / 0.5207 GB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4638, allocations: 2.906 kB / 0.5207 GB, free: 12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.4638, allocations: 1.156 kB / 0.5207 GB, free: 12 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.00496/0.4688, allocations: 1.175 MB / 0.5219 GB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/0.4688, allocations: 12.17 kB / 0.5219 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.4689, allocations: 68.33 kB / 0.522 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.4707, allocations: 215.8 kB / 0.5222 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.4713, allocations: 360 kB / 0.5225 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.4713, allocations: 26.31 kB / 0.5225 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.431e-05/0.4714, allocations: 27.03 kB / 0.5226 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.4729, allocations: 0.6192 MB / 0.5232 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.4729, allocations: 1.219 kB / 0.5232 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.473, allocations: 12.44 kB / 0.5232 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.473, allocations: 7.625 kB / 0.5232 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.4748, allocations: 0.5892 MB / 0.5238 GB, free: 10.73 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.00331/0.4781, allocations: 2.641 MB / 0.5263 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.4798, allocations: 0.4919 MB / 0.5268 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05088/0.5307, allocations: 26.99 MB / 0.5532 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.5308, allocations: 38.06 kB / 0.5532 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.924e-06/0.5308, allocations: 0 / 0.5532 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002984/0.5338, allocations: 0.8912 MB / 0.5541 GB, free: 15.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.5339, allocations: 105 kB / 0.5542 GB, free: 15.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.5343, allocations: 311.3 kB / 0.5545 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.5343, allocations: 32.95 kB / 0.5545 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.5345, allocations: 212 kB / 0.5547 GB, free: 15.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.5346, allocations: 76.03 kB / 0.5548 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/0.5346, allocations: 10.38 kB / 0.5548 GB, free: 15.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5348, allocations: 339.7 kB / 0.5551 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.5352, allocations: 167.9 kB / 0.5553 GB, free: 14.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/0.5357, allocations: 266.6 kB / 0.5555 GB, free: 14.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/0.5361, allocations: 176.8 kB / 0.5557 GB, free: 14.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.5362, allocations: 4 kB / 0.5557 GB, free: 14.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001025/0.5372, allocations: 489.3 kB / 0.5562 GB, free: 14.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.5372, allocations: 8 kB / 0.5562 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5372, allocations: 0 / 0.5562 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.5373, allocations: 7.953 kB / 0.5562 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/0.5376, allocations: 98.88 kB / 0.5563 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.5377, allocations: 7 kB / 0.5563 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.5381, allocations: 73.42 kB / 0.5564 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.5381, allocations: 17.73 kB / 0.5564 GB, free: 13.87 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: 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.0002117/0.5383, allocations: 162.6 kB / 0.5565 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.571e-05/0.5384, allocations: 31.62 kB / 0.5566 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.5408, allocations: 1.964 MB / 0.5585 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/0.5408, allocations: 33.06 kB / 0.5585 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.5408, allocations: 3.953 kB / 0.5585 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.5409, allocations: 0 / 0.5585 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.5419, allocations: 1.016 MB / 0.5595 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.5419, allocations: 0 / 0.5595 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003691/0.5423, allocations: 99 kB / 0.5596 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.5423, allocations: 3.844 kB / 0.5596 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.5423, allocations: 8.312 kB / 0.5596 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.5423, allocations: 0 / 0.5596 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5423, allocations: 0 / 0.5596 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.5438, allocations: 1.135 MB / 0.5607 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.5441, allocations: 218 kB / 0.5609 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/0.5441, allocations: 6.75 kB / 0.5609 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.5445, allocations: 55.83 kB / 0.561 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.835e-05/0.5446, allocations: 27.27 kB / 0.561 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.5446, allocations: 13.88 kB / 0.561 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000339/0.5449, allocations: 335 kB / 0.5613 GB, free: 10.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5449, allocations: 0 / 0.5613 GB, free: 10.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004545/0.5495, allocations: 0.9978 MB / 0.5623 GB, free: 9.148 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: 18 ($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) * 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.008798/0.5583, allocations: 2.76 MB / 0.565 GB, free: 6.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.5597, allocations: 0.6409 MB / 0.5656 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5597, allocations: 0 / 0.5656 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007052/0.5605, allocations: 0.5376 MB / 0.5662 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.5617, allocations: 209.7 kB / 0.5664 GB, free: 5.887 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008832/0.5705, allocations: 5.202 MB / 0.5714 GB, free: 1.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.571, allocations: 0.9854 MB / 0.5724 GB, free: 128 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005515/0.5716, allocations: 278.5 kB / 0.5727 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002573/0.5719, allocations: 253.5 kB / 0.5729 GB, free: 15.8 MB / 430.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5719, allocations: 0 / 0.5729 GB, free: 15.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0794/0.6513, allocations: 46.38 MB / 0.6182 GB, free: 1.73 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.6515, allocations: 238.5 kB / 0.6184 GB, free: 1.484 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.981/4.632, allocations: 0 / 0.6184 GB, free: 1.484 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat