Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009118/0.0009117, allocations: 174 kB / 16.08 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.6 MB / 222.4 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007651/0.0007651, allocations: 90.92 kB / 270.8 MB, free: 8.121 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3154/0.3154, allocations: 43.67 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004723/0.0004723, allocations: 8 kB / 432.3 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 58.85 MB / 491.2 MB, free: 9.805 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2456/0.378, allocations: 32.19 MB / 0.5111 GB, free: 25.79 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.3954, allocations: 19.95 MB / 0.5306 GB, free: 8.711 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005799/0.3961, allocations: 14.47 kB / 0.5306 GB, free: 8.703 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008509/0.3969, allocations: 222.5 kB / 0.5308 GB, free: 8.578 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.4072, allocations: 2.913 MB / 0.5336 GB, free: 7.305 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006541/0.4138, allocations: 1.973 MB / 0.5356 GB, free: 6.254 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.4151, allocations: 1.132 MB / 0.5367 GB, free: 5.824 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003795/0.4155, allocations: 206.6 kB / 0.5369 GB, free: 5.746 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007606/0.4163, allocations: 407.3 kB / 0.5373 GB, free: 5.578 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.4166, allocations: 261.6 kB / 0.5375 GB, free: 5.477 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/0.4167, allocations: 13.31 kB / 0.5375 GB, free: 5.477 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01437/0.4311, allocations: 6.859 MB / 0.5442 GB, free: 3.848 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002494/0.4314, allocations: 80.33 kB / 0.5443 GB, free: 3.809 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003958/0.4318, allocations: 230.5 kB / 0.5445 GB, free: 3.672 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.4465, allocations: 4.37 MB / 0.5488 GB, free: 2.555 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4466, allocations: 1.656 kB / 0.5488 GB, free: 2.555 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4466, allocations: 3.938 kB / 0.5488 GB, free: 2.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.4466, allocations: 0 / 0.5488 GB, free: 2.551 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.005382/0.452, allocations: 1.155 MB / 0.5499 GB, free: 1.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.4521, allocations: 8.969 kB / 0.5499 GB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.4539, allocations: 224.5 kB / 0.5501 GB, free: 1.758 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.4544, allocations: 371.8 kB / 0.5505 GB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.81e-05/0.4545, allocations: 25.34 kB / 0.5505 GB, free: 1.449 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-05/0.4545, allocations: 32.84 kB / 0.5506 GB, free: 1.438 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.456, allocations: 0.6022 MB / 0.5511 GB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.4561, allocations: 0 / 0.5511 GB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.074e-05/0.4561, allocations: 11.22 kB / 0.5511 GB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.4561, allocations: 12.88 kB / 0.5512 GB, free: 1.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.4577, allocations: 0.5628 MB / 0.5517 GB, free: 1.027 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.003172/0.4608, allocations: 2.637 MB / 0.5543 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.4624, allocations: 495.7 kB / 0.5548 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004983/0.463, allocations: 206.3 kB / 0.555 GB, free: 14.26 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04976/0.5128, allocations: 24.42 MB / 0.5788 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.553e-05/0.5129, allocations: 35.06 kB / 0.5788 GB, free: 10.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.274e-06/0.5129, allocations: 0 / 0.5788 GB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002824/0.5157, allocations: 0.8528 MB / 0.5797 GB, free: 9.504 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.886e-05/0.5158, allocations: 114.8 kB / 0.5798 GB, free: 9.367 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/0.5162, allocations: 304.5 kB / 0.5801 GB, free: 9.062 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.5162, allocations: 33.7 kB / 0.5801 GB, free: 9.023 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.5164, allocations: 196.2 kB / 0.5803 GB, free: 8.828 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/0.5165, allocations: 86.83 kB / 0.5804 GB, free: 8.742 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/0.5165, allocations: 4 kB / 0.5804 GB, free: 8.738 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5166, allocations: 350.8 kB / 0.5807 GB, free: 8.387 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.517, allocations: 155.8 kB / 0.5809 GB, free: 8.234 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004343/0.5175, allocations: 247 kB / 0.5811 GB, free: 7.953 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007936/0.5183, allocations: 394.4 kB / 0.5815 GB, free: 7.535 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5183, allocations: 0 / 0.5815 GB, free: 7.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009826/0.5193, allocations: 448.4 kB / 0.5819 GB, free: 7.094 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.5193, allocations: 8 kB / 0.5819 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.5193, allocations: 0 / 0.5819 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.5194, allocations: 4 kB / 0.5819 GB, free: 7.082 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.5197, allocations: 95.75 kB / 0.582 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.5197, allocations: 4.625 kB / 0.582 GB, free: 6.984 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.5201, allocations: 67.62 kB / 0.5821 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.5201, allocations: 19.98 kB / 0.5821 GB, free: 6.898 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.5203, allocations: 153.8 kB / 0.5822 GB, free: 6.738 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7e-05/0.5204, allocations: 39.61 kB / 0.5823 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/0.5229, allocations: 1.935 MB / 0.5842 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.259e-05/0.5229, allocations: 31.89 kB / 0.5842 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5229, allocations: 0 / 0.5842 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.523, allocations: 3.984 kB / 0.5842 GB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.524, allocations: 1.012 MB / 0.5852 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.5241, allocations: 0 / 0.5852 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.5244, allocations: 87.92 kB / 0.5853 GB, free: 3.578 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.5244, allocations: 0 / 0.5853 GB, free: 3.578 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.5244, allocations: 8 kB / 0.5853 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.5244, allocations: 7.875 kB / 0.5853 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5245, allocations: 0 / 0.5853 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.526, allocations: 1.097 MB / 0.5864 GB, free: 2.445 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/0.5263, allocations: 211.6 kB / 0.5866 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.5263, allocations: 15.92 kB / 0.5866 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.5267, allocations: 55.75 kB / 0.5866 GB, free: 2.148 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.5268, allocations: 27.95 kB / 0.5867 GB, free: 2.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.5269, allocations: 8 kB / 0.5867 GB, free: 2.113 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004032/0.5273, allocations: 327.1 kB / 0.587 GB, free: 1.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5273, allocations: 0 / 0.587 GB, free: 1.793 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005345/0.5326, allocations: 0.9955 MB / 0.5879 GB, free: 0.7969 MB / 410.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 (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.008667/0.5413, allocations: 1.163 MB / 0.5891 GB, free: 15.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.5429, allocations: 0.6196 MB / 0.5897 GB, free: 15.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.5429, allocations: 4 kB / 0.5897 GB, free: 15.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000769/0.5437, allocations: 0.5282 MB / 0.5902 GB, free: 14.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.545, allocations: 220.9 kB / 0.5904 GB, free: 14.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.5475, allocations: 1.887 MB / 0.5923 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005843/0.5481, allocations: 0.9599 MB / 0.5932 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005427/0.5486, allocations: 264.7 kB / 0.5934 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.5487, allocations: 43.42 kB / 0.5935 GB, free: 11.07 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5488, allocations: 4 kB / 0.5935 GB, free: 11.07 MB / 426.7 MB Notification: Performance of Templates: time 0.05837/0.6071, allocations: 38.74 MB / 0.6313 GB, free: 4.375 MB / 458.7 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