Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001149, allocations: 198.1 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008644/0.0008643, allocations: 92.44 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3278/0.3278, allocations: 44.83 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 4 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3158, allocations: 62.95 MB / 0.5159 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01983/0.3357, allocations: 26.29 MB / 0.5415 GB, free: 18.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.3478, allocations: 12.39 MB / 0.5536 GB, free: 9.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004782/0.3483, allocations: 13.12 kB / 0.5537 GB, free: 9.812 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007027/0.3491, allocations: 202.6 kB / 0.5539 GB, free: 9.703 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01013/0.3592, allocations: 2.858 MB / 0.5566 GB, free: 8.465 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006652/0.3659, allocations: 1.847 MB / 0.5584 GB, free: 7.512 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.3675, allocations: 0.9885 MB / 0.5594 GB, free: 7.094 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004225/0.3679, allocations: 213.8 kB / 0.5596 GB, free: 7.012 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008158/0.3688, allocations: 394.7 kB / 0.56 GB, free: 6.852 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003567/0.3691, allocations: 255.6 kB / 0.5602 GB, free: 6.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.453e-05/0.3692, allocations: 16.16 kB / 0.5603 GB, free: 6.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01576/0.385, allocations: 6.88 MB / 0.567 GB, free: 3.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002323/0.3852, allocations: 92.64 kB / 0.5671 GB, free: 3.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004422/0.3857, allocations: 218.6 kB / 0.5673 GB, free: 3.203 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006485/0.3922, allocations: 2.986 MB / 0.5702 GB, free: 1.457 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.3922, allocations: 0.9375 kB / 0.5702 GB, free: 1.457 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3922, allocations: 0 / 0.5702 GB, free: 1.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3923, allocations: 0 / 0.5702 GB, free: 1.457 MB / 378.7 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.004195/0.3965, allocations: 1.159 MB / 0.5713 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3965, allocations: 8.031 kB / 0.5713 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.3981, allocations: 220.3 kB / 0.5715 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.3986, allocations: 367.2 kB / 0.5719 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.3986, allocations: 25.03 kB / 0.5719 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.3987, allocations: 32.31 kB / 0.5719 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.4001, allocations: 0.6095 MB / 0.5725 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.4002, allocations: 0 / 0.5725 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.4002, allocations: 12 kB / 0.5725 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.4002, allocations: 8 kB / 0.5726 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.4018, allocations: 0.5602 MB / 0.5731 GB, free: 14.64 MB / 394.7 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.002975/0.4048, allocations: 2.64 MB / 0.5757 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.4063, allocations: 0.4903 MB / 0.5762 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004329/0.4068, allocations: 200.7 kB / 0.5763 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04717/0.4539, allocations: 26.98 MB / 0.6027 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.454, allocations: 38.55 kB / 0.6027 GB, free: 12.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 4.719e-06/0.454, allocations: 0 / 0.6027 GB, free: 12.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002679/0.4567, allocations: 0.8565 MB / 0.6036 GB, free: 11.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.4568, allocations: 110.8 kB / 0.6037 GB, free: 11.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.4571, allocations: 300.5 kB / 0.604 GB, free: 11.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.4572, allocations: 33.7 kB / 0.604 GB, free: 11.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4573, allocations: 208.2 kB / 0.6042 GB, free: 11.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.044e-05/0.4574, allocations: 82.84 kB / 0.6043 GB, free: 11.01 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.809e-05/0.4574, allocations: 4 kB / 0.6043 GB, free: 11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4575, allocations: 342.8 kB / 0.6046 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.458, allocations: 151.9 kB / 0.6047 GB, free: 10.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.4584, allocations: 246.9 kB / 0.605 GB, free: 10.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007614/0.4592, allocations: 391.2 kB / 0.6054 GB, free: 9.816 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4592, allocations: 0 / 0.6054 GB, free: 9.816 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009323/0.4601, allocations: 456.7 kB / 0.6058 GB, free: 9.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4602, allocations: 10.5 kB / 0.6058 GB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4602, allocations: 0 / 0.6058 GB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4602, allocations: 7.938 kB / 0.6058 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.4605, allocations: 88.2 kB / 0.6059 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.4606, allocations: 11.92 kB / 0.6059 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.4609, allocations: 71.59 kB / 0.606 GB, free: 9.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.4609, allocations: 16 kB / 0.606 GB, free: 9.164 MB / 426.7 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.0001737/0.4611, allocations: 157.8 kB / 0.6061 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.4612, allocations: 31.62 kB / 0.6062 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.4635, allocations: 1.94 MB / 0.6081 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.943e-05/0.4636, allocations: 31.89 kB / 0.6081 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4636, allocations: 3.984 kB / 0.6081 GB, free: 6.992 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.4636, allocations: 4 kB / 0.6081 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009886/0.4646, allocations: 1.019 MB / 0.6091 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4646, allocations: 0 / 0.6091 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.4649, allocations: 79.94 kB / 0.6092 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.4649, allocations: 0 / 0.6092 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.465, allocations: 12 kB / 0.6092 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.465, allocations: 3.938 kB / 0.6092 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.465, allocations: 0 / 0.6092 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.4664, allocations: 1.108 MB / 0.6103 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.4666, allocations: 215.6 kB / 0.6105 GB, free: 4.469 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.372e-05/0.4666, allocations: 8 kB / 0.6105 GB, free: 4.461 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.4669, allocations: 43.81 kB / 0.6105 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.046e-05/0.467, allocations: 35.94 kB / 0.6106 GB, free: 4.383 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.4671, allocations: 8 kB / 0.6106 GB, free: 4.375 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003237/0.4674, allocations: 323.1 kB / 0.6109 GB, free: 4.059 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4674, allocations: 0 / 0.6109 GB, free: 4.059 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003554/0.471, allocations: 1.007 MB / 0.6119 GB, free: 3.051 MB / 426.7 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.005019/0.476, allocations: 1.17 MB / 0.613 GB, free: 1.871 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.4772, allocations: 0.6183 MB / 0.6136 GB, free: 1.254 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4772, allocations: 0 / 0.6136 GB, free: 1.254 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006661/0.4779, allocations: 0.5283 MB / 0.6141 GB, free: 0.7266 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.4791, allocations: 211.4 kB / 0.6143 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.4812, allocations: 1.919 MB / 0.6162 GB, free: 14.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.4817, allocations: 0.9602 MB / 0.6171 GB, free: 13.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.4818, allocations: 43.44 kB / 0.6172 GB, free: 13.54 MB / 442.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4818, allocations: 0 / 0.6172 GB, free: 13.54 MB / 442.7 MB Notification: Performance of Templates: time 0.03526/0.5171, allocations: 24.04 MB / 0.6406 GB, free: 5.504 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches