Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008988/0.0008988, allocations: 174 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007387/0.0007388, allocations: 93.17 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2771/0.2771, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003504, allocations: 15.98 kB / 432 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.09951, allocations: 58.85 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1889/0.2884, allocations: 26.22 MB / 0.5049 GB, free: 31.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.2991, allocations: 12.38 MB / 0.517 GB, free: 23.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003893/0.2995, allocations: 13.03 kB / 0.517 GB, free: 23.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006362/0.3002, allocations: 207 kB / 0.5172 GB, free: 22.98 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006813/0.307, allocations: 2.852 MB / 0.52 GB, free: 21.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00476/0.3118, allocations: 1.845 MB / 0.5218 GB, free: 20.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009722/0.3128, allocations: 0.9901 MB / 0.5228 GB, free: 20.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.3131, allocations: 206.1 kB / 0.523 GB, free: 20.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005647/0.3136, allocations: 380.9 kB / 0.5233 GB, free: 20.16 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002441/0.3139, allocations: 260.3 kB / 0.5236 GB, free: 20.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.3139, allocations: 16.94 kB / 0.5236 GB, free: 20.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01032/0.3243, allocations: 6.877 MB / 0.5303 GB, free: 18.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.3244, allocations: 77.67 kB / 0.5304 GB, free: 18.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/0.3246, allocations: 215.9 kB / 0.5306 GB, free: 18.3 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00459/0.3292, allocations: 2.983 MB / 0.5335 GB, free: 17.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3293, allocations: 0 / 0.5335 GB, free: 17.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3293, allocations: 0 / 0.5335 GB, free: 17.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.3293, allocations: 6.719 kB / 0.5335 GB, free: 17.72 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.003278/0.3326, allocations: 1.147 MB / 0.5346 GB, free: 16.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.3326, allocations: 9.438 kB / 0.5347 GB, free: 16.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.3342, allocations: 223.6 kB / 0.5349 GB, free: 16.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.3346, allocations: 364.8 kB / 0.5352 GB, free: 16.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.3346, allocations: 29.38 kB / 0.5352 GB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.3347, allocations: 31.25 kB / 0.5353 GB, free: 16.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.3361, allocations: 0.6051 MB / 0.5359 GB, free: 16.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.3361, allocations: 0 / 0.5359 GB, free: 16.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.3361, allocations: 15.09 kB / 0.5359 GB, free: 16.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.3361, allocations: 15.62 kB / 0.5359 GB, free: 16.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.3376, allocations: 0.5595 MB / 0.5364 GB, free: 16.2 MB / 378.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.002372/0.34, allocations: 2.644 MB / 0.539 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.3414, allocations: 497.7 kB / 0.5395 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/0.3418, allocations: 205.4 kB / 0.5397 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0406/0.3824, allocations: 24.42 MB / 0.5635 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.3825, allocations: 37.38 kB / 0.5636 GB, free: 10.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 3.206e-06/0.3825, allocations: 4 kB / 0.5636 GB, free: 10.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002598/0.3851, allocations: 0.842 MB / 0.5644 GB, free: 10.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.3852, allocations: 109.1 kB / 0.5645 GB, free: 10.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.3855, allocations: 310.1 kB / 0.5648 GB, free: 10.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.3855, allocations: 33.64 kB / 0.5648 GB, free: 10.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.3857, allocations: 202.5 kB / 0.565 GB, free: 10.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.3857, allocations: 83.12 kB / 0.5651 GB, free: 9.953 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.3857, allocations: 4 kB / 0.5651 GB, free: 9.949 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3859, allocations: 345.5 kB / 0.5654 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.3862, allocations: 152.5 kB / 0.5656 GB, free: 9.543 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.3867, allocations: 247.4 kB / 0.5658 GB, free: 9.355 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/0.3874, allocations: 393 kB / 0.5662 GB, free: 9.109 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3874, allocations: 2.594 kB / 0.5662 GB, free: 9.109 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000925/0.3883, allocations: 447 kB / 0.5666 GB, free: 8.891 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.3884, allocations: 8.156 kB / 0.5666 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3884, allocations: 2.5 kB / 0.5666 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3884, allocations: 2.281 kB / 0.5666 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.3887, allocations: 91.5 kB / 0.5667 GB, free: 8.863 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.3887, allocations: 7.938 kB / 0.5667 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.3891, allocations: 65.75 kB / 0.5668 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.3891, allocations: 15.61 kB / 0.5668 GB, free: 8.82 MB / 394.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.0001708/0.3893, allocations: 166.3 kB / 0.567 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.3893, allocations: 36.14 kB / 0.567 GB, free: 8.648 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/0.3916, allocations: 1.933 MB / 0.5689 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/0.3917, allocations: 31.89 kB / 0.5689 GB, free: 7.168 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3917, allocations: 3.938 kB / 0.5689 GB, free: 7.164 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.3917, allocations: 7.984 kB / 0.5689 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009434/0.3926, allocations: 1.015 MB / 0.5699 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3926, allocations: 0 / 0.5699 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.3929, allocations: 79.94 kB / 0.57 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.393, allocations: 4 kB / 0.57 GB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.393, allocations: 8 kB / 0.57 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.393, allocations: 3.938 kB / 0.57 GB, free: 5.996 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.393, allocations: 0 / 0.57 GB, free: 5.996 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.3943, allocations: 1.105 MB / 0.5711 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.3945, allocations: 215.6 kB / 0.5713 GB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.616e-05/0.3946, allocations: 4 kB / 0.5713 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002882/0.3949, allocations: 55.69 kB / 0.5714 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.395, allocations: 31.95 kB / 0.5714 GB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.395, allocations: 15.98 kB / 0.5714 GB, free: 4.535 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003349/0.3953, allocations: 323.1 kB / 0.5717 GB, free: 4.219 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3953, allocations: 0 / 0.5717 GB, free: 4.219 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003272/0.3986, allocations: 0.9955 MB / 0.5727 GB, free: 3.223 MB / 394.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.004025/0.4027, allocations: 1.164 MB / 0.5738 GB, free: 2.055 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.4038, allocations: 0.6195 MB / 0.5744 GB, free: 1.438 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4038, allocations: 7.875 kB / 0.5744 GB, free: 1.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006686/0.4045, allocations: 0.5285 MB / 0.5749 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.4055, allocations: 194.8 kB / 0.5751 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.4076, allocations: 1.905 MB / 0.577 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.4081, allocations: 0.9641 MB / 0.5779 GB, free: 13.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.4082, allocations: 43.42 kB / 0.578 GB, free: 13.74 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4082, allocations: 0 / 0.578 GB, free: 13.74 MB / 410.7 MB Notification: Performance of Templates: time 0.03121/0.4395, allocations: 23.92 MB / 0.6013 GB, free: 5.82 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches