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: 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_4.0.0_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_4.0.0_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.001093/0.001093, allocations: 109.3 kB / 18.45 MB, free: 4.625 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.001187/0.001187, allocations: 185.1 kB / 19.37 MB, free: 3.707 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.303/1.303, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2079/0.2079, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3482, allocations: 60.82 MB / 0.5196 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.034/0.3823, allocations: 28.12 MB / 0.547 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.3998, allocations: 13.29 MB / 0.56 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006059/0.4005, allocations: 7.938 kB / 0.56 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009542/0.4015, allocations: 254.4 kB / 0.5603 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.4133, allocations: 3.666 MB / 0.5638 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007557/0.4209, allocations: 2.368 MB / 0.5661 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001442/0.4223, allocations: 0.8963 MB / 0.567 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005467/0.4229, allocations: 244.8 kB / 0.5673 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.424, allocations: 446.2 kB / 0.5677 GB, free: 10.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005423/0.4245, allocations: 274.8 kB / 0.5679 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.828e-05/0.4246, allocations: 36 kB / 0.568 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01518/0.4398, allocations: 7.219 MB / 0.575 GB, free: 3.121 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.4401, allocations: 107.7 kB / 0.5751 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003907/0.4405, allocations: 211.1 kB / 0.5753 GB, free: 2.809 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01102/0.4515, allocations: 4.409 MB / 0.5796 GB, free: 14.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4515, allocations: 0 / 0.5796 GB, free: 14.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4516, allocations: 0 / 0.5796 GB, free: 14.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.153e-05/0.4516, allocations: 0 / 0.5796 GB, free: 14.39 MB / 446.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.003634/0.4552, allocations: 1.236 MB / 0.5808 GB, free: 13.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.4553, allocations: 8.031 kB / 0.5808 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/0.4571, allocations: 212.3 kB / 0.5811 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007217/0.4579, allocations: 379.2 kB / 0.5814 GB, free: 12.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/0.4579, allocations: 29.03 kB / 0.5814 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.458, allocations: 24.38 kB / 0.5815 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.4596, allocations: 0.5861 MB / 0.582 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.4596, allocations: 3.984 kB / 0.582 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-05/0.4597, allocations: 12 kB / 0.5821 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.4597, allocations: 12 kB / 0.5821 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.4613, allocations: 0.525 MB / 0.5826 GB, free: 11.25 MB / 446.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.003105/0.4644, allocations: 2.621 MB / 0.5851 GB, free: 8.391 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.466, allocations: 466 kB / 0.5856 GB, free: 7.926 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.4665, allocations: 192.7 kB / 0.5858 GB, free: 7.734 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04901/0.5155, allocations: 24.3 MB / 0.6095 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/0.5156, allocations: 42.56 kB / 0.6095 GB, free: 12.49 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.956e-06/0.5156, allocations: 0 / 0.6095 GB, free: 12.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003181/0.5188, allocations: 0.7932 MB / 0.6103 GB, free: 11.69 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.683e-05/0.5188, allocations: 110.8 kB / 0.6104 GB, free: 11.55 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004186/0.5193, allocations: 308.5 kB / 0.6107 GB, free: 11.24 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.928e-05/0.5194, allocations: 33.7 kB / 0.6107 GB, free: 11.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.5196, allocations: 204.2 kB / 0.6109 GB, free: 11 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.544e-05/0.5197, allocations: 82.84 kB / 0.611 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.5198, allocations: 69.69 kB / 0.6111 GB, free: 10.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.52, allocations: 342.8 kB / 0.6114 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/0.5204, allocations: 135.9 kB / 0.6115 GB, free: 10.36 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/0.5209, allocations: 235 kB / 0.6118 GB, free: 10.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008125/0.5217, allocations: 361.1 kB / 0.6121 GB, free: 9.707 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.5217, allocations: 3.938 kB / 0.6121 GB, free: 9.703 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001073/0.5228, allocations: 425.6 kB / 0.6125 GB, free: 9.281 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.5229, allocations: 8.297 kB / 0.6125 GB, free: 9.273 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.5229, allocations: 8 kB / 0.6125 GB, free: 9.266 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.5229, allocations: 7.938 kB / 0.6125 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000326/0.5232, allocations: 75.89 kB / 0.6126 GB, free: 9.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.5233, allocations: 4 kB / 0.6126 GB, free: 9.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.5236, allocations: 55.56 kB / 0.6127 GB, free: 9.125 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.5236, allocations: 15.98 kB / 0.6127 GB, free: 9.109 MB / 478.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 (Opening.y,SinkP1.medium.phase,SourceP1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002656/0.5239, allocations: 161.8 kB / 0.6128 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.957e-05/0.524, allocations: 31.62 kB / 0.6129 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002547/0.5265, allocations: 1.889 MB / 0.6147 GB, free: 7.008 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.152e-05/0.5266, allocations: 31.89 kB / 0.6147 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5266, allocations: 4 kB / 0.6147 GB, free: 6.973 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5266, allocations: 0 / 0.6147 GB, free: 6.973 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.5277, allocations: 1.015 MB / 0.6157 GB, free: 5.906 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.5277, allocations: 0 / 0.6157 GB, free: 5.906 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.528, allocations: 79.86 kB / 0.6158 GB, free: 5.828 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.528, allocations: 3.938 kB / 0.6158 GB, free: 5.824 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.528, allocations: 8 kB / 0.6158 GB, free: 5.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.5281, allocations: 7.938 kB / 0.6158 GB, free: 5.809 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5281, allocations: 0 / 0.6158 GB, free: 5.809 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.5296, allocations: 1.073 MB / 0.6169 GB, free: 4.719 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/0.5298, allocations: 163.8 kB / 0.617 GB, free: 4.539 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.142e-05/0.5299, allocations: 19.78 kB / 0.6171 GB, free: 4.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002769/0.5302, allocations: 27.91 kB / 0.6171 GB, free: 4.492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.5303, allocations: 39.89 kB / 0.6171 GB, free: 4.453 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.506e-05/0.5303, allocations: 12 kB / 0.6171 GB, free: 4.441 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003703/0.5307, allocations: 327.1 kB / 0.6174 GB, free: 4.121 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5307, allocations: 0 / 0.6174 GB, free: 4.121 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003027/0.5337, allocations: 0.9838 MB / 0.6184 GB, free: 3.137 MB / 478.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005087/0.5388, allocations: 1.176 MB / 0.6196 GB, free: 1.961 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.5402, allocations: 0.5947 MB / 0.6201 GB, free: 1.363 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.5403, allocations: 0 / 0.6201 GB, free: 1.363 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007368/0.541, allocations: 0.5087 MB / 0.6206 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.5423, allocations: 212 kB / 0.6208 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.5448, allocations: 1.54 MB / 0.6223 GB, free: 15.08 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.5453, allocations: 0.9677 MB / 0.6233 GB, free: 14.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.5455, allocations: 47.42 kB / 0.6233 GB, free: 14.05 MB / 494.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5455, allocations: 3.938 kB / 0.6233 GB, free: 14.04 MB / 494.1 MB Notification: Performance of Templates: time 0.03625/0.5817, allocations: 23.98 MB / 0.6468 GB, free: 6.074 MB / 0.4981 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches