Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 93.86 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 188.2 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.2 MB / 241.8 MB, free: 14.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2052/0.2052, allocations: 44.22 MB / 337.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003444, allocations: 11.98 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02626/0.1509, allocations: 23.78 MB / 495.3 MB, free: 5.793 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.1646, allocations: 11.37 MB / 0.4948 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.1651, allocations: 11.94 kB / 0.4948 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006645/0.1657, allocations: 211 kB / 0.495 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008664/0.1744, allocations: 2.814 MB / 0.4978 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006635/0.1811, allocations: 1.91 MB / 0.4996 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.1824, allocations: 0.5393 MB / 0.5002 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.1828, allocations: 204.9 kB / 0.5004 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008499/0.1837, allocations: 402.6 kB / 0.5008 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.184, allocations: 203.2 kB / 0.5009 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.292e-05/0.184, allocations: 16 kB / 0.501 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2731/0.4571, allocations: 7.007 MB / 0.5078 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002251/0.4574, allocations: 74.52 kB / 0.5079 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002195/0.4576, allocations: 105.7 kB / 0.508 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008955/0.4666, allocations: 2.943 MB / 0.5108 GB, free: 15.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.4666, allocations: 5.219 kB / 0.5109 GB, free: 15.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4666, allocations: 0 / 0.5109 GB, free: 15.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.4666, allocations: 0 / 0.5109 GB, free: 15.83 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.005232/0.4719, allocations: 1.16 MB / 0.512 GB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4719, allocations: 9.781 kB / 0.512 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.151e-05/0.472, allocations: 67.12 kB / 0.5121 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.4738, allocations: 222 kB / 0.5123 GB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.4743, allocations: 353.9 kB / 0.5126 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.367e-05/0.4744, allocations: 24.06 kB / 0.5126 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/0.4744, allocations: 28.34 kB / 0.5127 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.476, allocations: 0.6026 MB / 0.5132 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.476, allocations: 3.25 kB / 0.5133 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.4761, allocations: 14.53 kB / 0.5133 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.4761, allocations: 6.75 kB / 0.5133 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.4777, allocations: 0.5656 MB / 0.5138 GB, free: 14.72 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.002884/0.4806, allocations: 2.636 MB / 0.5164 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.4824, allocations: 499.5 kB / 0.5169 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04731/0.5297, allocations: 24.42 MB / 0.5407 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.017e-05/0.5298, allocations: 38.44 kB / 0.5408 GB, free: 12.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.863e-06/0.5298, allocations: 0 / 0.5408 GB, free: 12.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002792/0.5326, allocations: 0.8549 MB / 0.5416 GB, free: 12.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.472e-05/0.5327, allocations: 102.8 kB / 0.5417 GB, free: 12.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003853/0.5331, allocations: 305.6 kB / 0.542 GB, free: 11.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.5332, allocations: 28.77 kB / 0.542 GB, free: 11.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.5333, allocations: 210.3 kB / 0.5422 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.13e-05/0.5334, allocations: 88.41 kB / 0.5423 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.5334, allocations: 4.5 kB / 0.5423 GB, free: 11.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.5336, allocations: 344.8 kB / 0.5426 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.534, allocations: 154 kB / 0.5428 GB, free: 11.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/0.5344, allocations: 250.4 kB / 0.543 GB, free: 11.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.5348, allocations: 173.1 kB / 0.5432 GB, free: 11.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5348, allocations: 0 / 0.5432 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009075/0.5357, allocations: 445.3 kB / 0.5436 GB, free: 11.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.5357, allocations: 11.45 kB / 0.5436 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.5358, allocations: 3.844 kB / 0.5436 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.5358, allocations: 3.469 kB / 0.5436 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.5361, allocations: 89.86 kB / 0.5437 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.5361, allocations: 3.844 kB / 0.5437 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.5365, allocations: 65.67 kB / 0.5438 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.5365, allocations: 14.97 kB / 0.5438 GB, free: 10.96 MB / 398.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.0002001/0.5367, allocations: 165.4 kB / 0.5439 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.121e-05/0.5368, allocations: 38.12 kB / 0.544 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/0.539, allocations: 1.934 MB / 0.5459 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.611e-05/0.539, allocations: 34.45 kB / 0.5459 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.539, allocations: 0 / 0.5459 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.539, allocations: 3.984 kB / 0.5459 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009412/0.54, allocations: 1.016 MB / 0.5469 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.54, allocations: 0 / 0.5469 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003207/0.5403, allocations: 83.34 kB / 0.547 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.5404, allocations: 5.906 kB / 0.547 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.5404, allocations: 8.594 kB / 0.547 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5404, allocations: 0 / 0.547 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.5404, allocations: 0 / 0.547 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.5418, allocations: 1.114 MB / 0.5481 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.542, allocations: 214.4 kB / 0.5483 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.326e-05/0.5421, allocations: 7.188 kB / 0.5483 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000334/0.5424, allocations: 47.7 kB / 0.5483 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.512e-05/0.5425, allocations: 39.44 kB / 0.5484 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.5426, allocations: 8 kB / 0.5484 GB, free: 8.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003399/0.5429, allocations: 318.4 kB / 0.5487 GB, free: 8.555 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5429, allocations: 4 kB / 0.5487 GB, free: 8.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005677/0.5486, allocations: 0.993 MB / 0.5497 GB, free: 7.602 MB / 398.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.008225/0.5569, allocations: 2.719 MB / 0.5523 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.5582, allocations: 0.617 MB / 0.5529 GB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5582, allocations: 0 / 0.5529 GB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006992/0.5589, allocations: 0.5293 MB / 0.5534 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.5601, allocations: 201.2 kB / 0.5536 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007915/0.568, allocations: 5.147 MB / 0.5587 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.5685, allocations: 0.9788 MB / 0.5596 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004934/0.569, allocations: 273.2 kB / 0.5599 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.5693, allocations: 251.4 kB / 0.5601 GB, free: 14.42 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5693, allocations: 0 / 0.5601 GB, free: 14.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07348/0.6428, allocations: 46.18 MB / 0.6052 GB, free: 0.625 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.643, allocations: 247.4 kB / 0.6054 GB, free: 388 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.148/4.791, allocations: 4 kB / 0.6054 GB, free: 384 kB / 446.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat