Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 115.9 kB / 17.08 MB, free: 5.832 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.001284/0.001284, allocations: 194.4 kB / 18.01 MB, free: 4.965 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.499/1.499, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.22/0.22, allocations: 43.54 MB / 314.8 MB, free: 456 kB / 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.001577/0.001577, allocations: 71.89 kB / 442.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1307, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03302/0.1637, allocations: 28.14 MB / 0.516 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.1806, allocations: 13.3 MB / 0.529 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005939/0.1812, allocations: 7.938 kB / 0.529 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009751/0.1822, allocations: 254.4 kB / 0.5293 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2735/0.4558, allocations: 3.651 MB / 0.5328 GB, free: 4.918 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007164/0.4629, allocations: 2.362 MB / 0.5351 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.4644, allocations: 0.8962 MB / 0.536 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004704/0.4649, allocations: 253.7 kB / 0.5362 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009213/0.4659, allocations: 444.7 kB / 0.5367 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004132/0.4663, allocations: 271.5 kB / 0.5369 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-05/0.4664, allocations: 34.12 kB / 0.537 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01728/0.4836, allocations: 7.221 MB / 0.544 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.4839, allocations: 101.8 kB / 0.5441 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004641/0.4844, allocations: 222.1 kB / 0.5443 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.4988, allocations: 4.405 MB / 0.5486 GB, free: 4.719 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4988, allocations: 0 / 0.5486 GB, free: 4.719 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4989, allocations: 1.375 kB / 0.5486 GB, free: 4.719 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.662e-05/0.4989, allocations: 3.281 kB / 0.5486 GB, free: 4.719 MB / 414.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.005766/0.5047, allocations: 1.236 MB / 0.5498 GB, free: 3.996 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5047, allocations: 14.05 kB / 0.5498 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001981/0.5067, allocations: 211.1 kB / 0.55 GB, free: 3.969 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007766/0.5075, allocations: 387.2 kB / 0.5504 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.5076, allocations: 25.34 kB / 0.5504 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.304e-05/0.5076, allocations: 28.66 kB / 0.5505 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.5094, allocations: 0.5999 MB / 0.551 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.5094, allocations: 1.438 kB / 0.5511 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.5095, allocations: 13.06 kB / 0.5511 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.5095, allocations: 8.312 kB / 0.5511 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.5112, allocations: 0.5453 MB / 0.5516 GB, free: 3.586 MB / 414.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.002915/0.5142, allocations: 2.632 MB / 0.5542 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.5158, allocations: 466.6 kB / 0.5546 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.5163, allocations: 200.5 kB / 0.5548 GB, free: 1.379 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05239/0.5687, allocations: 24.3 MB / 0.5785 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/0.5688, allocations: 36.62 kB / 0.5786 GB, free: 14.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 6.813e-06/0.5688, allocations: 7.469 kB / 0.5786 GB, free: 14.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003355/0.5721, allocations: 0.8129 MB / 0.5794 GB, free: 13.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.654e-05/0.5722, allocations: 110.8 kB / 0.5795 GB, free: 13.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.5727, allocations: 311.1 kB / 0.5798 GB, free: 13.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/0.5727, allocations: 33.39 kB / 0.5798 GB, free: 13.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.5729, allocations: 205 kB / 0.58 GB, free: 13.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.33e-05/0.573, allocations: 84.75 kB / 0.5801 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.5732, allocations: 70.06 kB / 0.5801 GB, free: 13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5733, allocations: 343.1 kB / 0.5805 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.5738, allocations: 145.1 kB / 0.5806 GB, free: 12.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.5743, allocations: 246.1 kB / 0.5808 GB, free: 12.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009159/0.5752, allocations: 378.2 kB / 0.5812 GB, free: 12.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.5752, allocations: 0 / 0.5812 GB, free: 12.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001222/0.5765, allocations: 449 kB / 0.5816 GB, free: 11.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.5765, allocations: 8 kB / 0.5816 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.5765, allocations: 4 kB / 0.5817 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.5766, allocations: 7.938 kB / 0.5817 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.5769, allocations: 97 kB / 0.5818 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.577, allocations: 4.312 kB / 0.5818 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/0.5774, allocations: 58.92 kB / 0.5818 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.5774, allocations: 15.44 kB / 0.5818 GB, free: 11.52 MB / 446.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: 4 (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.0002414/0.5777, allocations: 163.3 kB / 0.582 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.5778, allocations: 31.62 kB / 0.582 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002857/0.5807, allocations: 1.912 MB / 0.5839 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.334e-05/0.5807, allocations: 35.89 kB / 0.5839 GB, free: 9.723 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.5807, allocations: 0 / 0.5839 GB, free: 9.723 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.5807, allocations: 3.984 kB / 0.5839 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.582, allocations: 1.01 MB / 0.5849 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.582, allocations: 0 / 0.5849 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.5823, allocations: 79.11 kB / 0.585 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-06/0.5823, allocations: 4 kB / 0.585 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.5824, allocations: 8 kB / 0.585 GB, free: 8.582 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.5824, allocations: 8.812 kB / 0.585 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5824, allocations: 0 / 0.585 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.5841, allocations: 1.095 MB / 0.5861 GB, free: 7.461 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.5843, allocations: 163.8 kB / 0.5862 GB, free: 7.281 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.5844, allocations: 23.69 kB / 0.5862 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003313/0.5847, allocations: 35.91 kB / 0.5863 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.5849, allocations: 31.95 kB / 0.5863 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.585, allocations: 17.86 kB / 0.5863 GB, free: 7.176 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004624/0.5854, allocations: 331 kB / 0.5866 GB, free: 6.859 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.334e-06/0.5854, allocations: 0 / 0.5866 GB, free: 6.859 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005019/0.5905, allocations: 0.9954 MB / 0.5876 GB, free: 5.863 MB / 446.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: 18 ($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) * 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.007812/0.5983, allocations: 1.163 MB / 0.5888 GB, free: 4.805 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.6, allocations: 0.6118 MB / 0.5893 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.6, allocations: 0 / 0.5893 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008316/0.6008, allocations: 0.5203 MB / 0.5899 GB, free: 3.691 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.6022, allocations: 220.8 kB / 0.5901 GB, free: 3.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.6047, allocations: 1.547 MB / 0.5916 GB, free: 1.906 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006071/0.6053, allocations: 0.9638 MB / 0.5925 GB, free: 0.918 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.6055, allocations: 43.44 kB / 0.5926 GB, free: 0.875 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.6055, allocations: 0 / 0.5926 GB, free: 0.875 MB / 446.1 MB Notification: Performance of Templates: time 0.04133/0.6468, allocations: 24.01 MB / 0.616 GB, free: 8.887 MB / 478.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches