Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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: 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_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 179 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.4 MB / 222.8 MB, free: 5.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3452/0.3452, allocations: 43.58 MB / 314.6 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.0004739, allocations: 18.97 kB / 384 MB, free: 8.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1077, allocations: 58.87 MB / 442.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1976/0.3054, allocations: 26.15 MB / 469 MB, free: 35.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.3171, allocations: 12.39 MB / 481.4 MB, free: 27.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000494/0.3176, allocations: 10.47 kB / 481.4 MB, free: 27.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007504/0.3184, allocations: 195.2 kB / 481.6 MB, free: 27.87 MB / 382.1 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.007358/0.3258, allocations: 2.85 MB / 484.4 MB, free: 26.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004989/0.3308, allocations: 1.825 MB / 486.2 MB, free: 25.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.3318, allocations: 0.9807 MB / 487.2 MB, free: 25.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003827/0.3322, allocations: 203.2 kB / 487.4 MB, free: 25.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006959/0.3329, allocations: 388.9 kB / 487.8 MB, free: 25.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/0.3333, allocations: 250 kB / 488 MB, free: 24.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.3334, allocations: 16.78 kB / 488.1 MB, free: 24.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01191/0.3453, allocations: 6.816 MB / 494.9 MB, free: 23.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.3455, allocations: 85.41 kB / 495 MB, free: 23.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.3457, allocations: 103.1 kB / 495.1 MB, free: 23.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007152/0.3528, allocations: 2.955 MB / 498 MB, free: 22.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3529, allocations: 1.219 kB / 498 MB, free: 22.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3529, allocations: 0.6562 kB / 498 MB, free: 22.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.3529, allocations: 0 / 498 MB, free: 22.71 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.004822/0.3577, allocations: 1.162 MB / 499.2 MB, free: 21.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3578, allocations: 9.125 kB / 499.2 MB, free: 21.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.3596, allocations: 224.9 kB / 499.4 MB, free: 21.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.3601, allocations: 345.3 kB / 499.7 MB, free: 21.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.3602, allocations: 29.94 kB / 499.8 MB, free: 21.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/0.3602, allocations: 31 kB / 499.8 MB, free: 21.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.3618, allocations: 0.5979 MB / 0.4887 GB, free: 21.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3618, allocations: 1.25 kB / 0.4887 GB, free: 21.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.3619, allocations: 16.94 kB / 0.4887 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.3619, allocations: 7.75 kB / 0.4887 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.3634, allocations: 0.5591 MB / 0.4892 GB, free: 21.21 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.002688/0.3661, allocations: 2.641 MB / 0.4918 GB, free: 18.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.3676, allocations: 495.5 kB / 0.4923 GB, free: 18.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004115/0.368, allocations: 205.6 kB / 0.4925 GB, free: 18.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04163/0.4097, allocations: 24.42 MB / 0.5163 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.07e-05/0.4098, allocations: 36.53 kB / 0.5164 GB, free: 15.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.315e-06/0.4098, allocations: 1.219 kB / 0.5164 GB, free: 15.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002787/0.4126, allocations: 0.8491 MB / 0.5172 GB, free: 15.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.4126, allocations: 110.2 kB / 0.5173 GB, free: 15.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.413, allocations: 306.6 kB / 0.5176 GB, free: 15.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.734e-05/0.4131, allocations: 29.7 kB / 0.5176 GB, free: 15.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.4133, allocations: 215.6 kB / 0.5178 GB, free: 15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.064e-05/0.4134, allocations: 79.3 kB / 0.5179 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.4134, allocations: 4 kB / 0.5179 GB, free: 14.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4135, allocations: 341.6 kB / 0.5182 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.4139, allocations: 163.5 kB / 0.5184 GB, free: 14.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.4143, allocations: 243.6 kB / 0.5186 GB, free: 14.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003625/0.4147, allocations: 171.8 kB / 0.5188 GB, free: 14.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4147, allocations: 0 / 0.5188 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009244/0.4156, allocations: 449.5 kB / 0.5192 GB, free: 14.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.4156, allocations: 5.75 kB / 0.5192 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.4156, allocations: 2.156 kB / 0.5192 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.4157, allocations: 5.625 kB / 0.5192 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.416, allocations: 95.28 kB / 0.5193 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.416, allocations: 3.875 kB / 0.5193 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.4164, allocations: 62.12 kB / 0.5194 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.4164, allocations: 22.97 kB / 0.5194 GB, free: 13.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.000211/0.4167, allocations: 161.9 kB / 0.5196 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.712e-05/0.4167, allocations: 35.94 kB / 0.5196 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.4192, allocations: 1.937 MB / 0.5215 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/0.4192, allocations: 27.95 kB / 0.5215 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.4192, allocations: 5.344 kB / 0.5215 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.4193, allocations: 0 / 0.5215 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.4204, allocations: 1.022 MB / 0.5225 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.4204, allocations: 4.5 kB / 0.5225 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.4207, allocations: 75.92 kB / 0.5226 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.4207, allocations: 4 kB / 0.5226 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.4208, allocations: 14.62 kB / 0.5226 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.4208, allocations: 0 / 0.5226 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4208, allocations: 7.938 kB / 0.5226 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.4222, allocations: 1.105 MB / 0.5237 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.4225, allocations: 211.6 kB / 0.5239 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.341e-05/0.4226, allocations: 11.98 kB / 0.5239 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.4229, allocations: 47.81 kB / 0.524 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.423, allocations: 31.95 kB / 0.524 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.423, allocations: 15.98 kB / 0.524 GB, free: 10.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003613/0.4234, allocations: 319.1 kB / 0.5243 GB, free: 9.738 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4234, allocations: 0 / 0.5243 GB, free: 9.738 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004981/0.4284, allocations: 0.9877 MB / 0.5253 GB, free: 8.75 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.008104/0.4365, allocations: 1.176 MB / 0.5264 GB, free: 7.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.4379, allocations: 0.613 MB / 0.527 GB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4379, allocations: 0 / 0.527 GB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007266/0.4386, allocations: 0.5321 MB / 0.5276 GB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.4398, allocations: 197.7 kB / 0.5277 GB, free: 6.234 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.4423, allocations: 1.869 MB / 0.5296 GB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.4427, allocations: 0.9602 MB / 0.5305 GB, free: 3.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005007/0.4433, allocations: 290 kB / 0.5308 GB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.684e-05/0.4434, allocations: 39.44 kB / 0.5308 GB, free: 3.035 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4434, allocations: 0 / 0.5308 GB, free: 3.035 MB / 398.1 MB Notification: Performance of Templates: time 0.05516/0.4985, allocations: 39.09 MB / 0.569 GB, free: 11.94 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches