Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 173.2 kB / 17.41 MB, free: 4.387 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 225.7 MB / 243.9 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007162/0.0007162, allocations: 93.33 kB / 295 MB, free: 9.484 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3266/0.3266, allocations: 44.32 MB / 390.5 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002917, allocations: 8 kB / 463.1 MB, free: 452 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3153, allocations: 61.9 MB / 0.5127 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02395/0.3393, allocations: 32.19 MB / 0.5442 GB, free: 12.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01703/0.3564, allocations: 19.96 MB / 0.5637 GB, free: 11.66 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000533/0.3569, allocations: 14.16 kB / 0.5637 GB, free: 11.65 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008968/0.3579, allocations: 220.8 kB / 0.5639 GB, free: 11.53 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.3682, allocations: 2.919 MB / 0.5667 GB, free: 10.24 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008094/0.3763, allocations: 1.976 MB / 0.5687 GB, free: 9.18 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002178/0.3785, allocations: 1.135 MB / 0.5698 GB, free: 8.75 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006385/0.3792, allocations: 209.2 kB / 0.57 GB, free: 8.672 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.3804, allocations: 398 kB / 0.5704 GB, free: 8.512 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007008/0.3812, allocations: 265.2 kB / 0.5706 GB, free: 8.406 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.3813, allocations: 19.53 kB / 0.5706 GB, free: 8.402 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01969/0.401, allocations: 6.865 MB / 0.5773 GB, free: 6.223 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002723/0.4013, allocations: 76.89 kB / 0.5774 GB, free: 6.168 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005506/0.4019, allocations: 231.2 kB / 0.5776 GB, free: 6.02 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.4153, allocations: 4.381 MB / 0.5819 GB, free: 3.238 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.4154, allocations: 0 / 0.5819 GB, free: 3.238 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.4154, allocations: 0 / 0.5819 GB, free: 3.238 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.397e-05/0.4154, allocations: 3.938 kB / 0.5819 GB, free: 3.234 MB / 394.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.005182/0.4206, allocations: 1.156 MB / 0.583 GB, free: 2.387 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.4207, allocations: 9.062 kB / 0.583 GB, free: 2.387 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001992/0.4227, allocations: 217.9 kB / 0.5833 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007793/0.4235, allocations: 362.8 kB / 0.5836 GB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.79e-05/0.4235, allocations: 26.06 kB / 0.5836 GB, free: 1.949 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.045e-05/0.4236, allocations: 27.38 kB / 0.5837 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.4254, allocations: 0.6087 MB / 0.5842 GB, free: 1.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4254, allocations: 4 kB / 0.5842 GB, free: 1.543 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.953e-05/0.4254, allocations: 17.25 kB / 0.5843 GB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.525e-05/0.4255, allocations: 7.406 kB / 0.5843 GB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.4271, allocations: 0.5651 MB / 0.5848 GB, free: 1.164 MB / 394.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.003243/0.4304, allocations: 2.64 MB / 0.5874 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.4319, allocations: 0.4929 MB / 0.5879 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004312/0.4324, allocations: 204.7 kB / 0.5881 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04656/0.4789, allocations: 24.43 MB / 0.6119 GB, free: 2.262 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/0.479, allocations: 38.56 kB / 0.612 GB, free: 2.215 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.479, allocations: 0 / 0.612 GB, free: 2.215 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.0028/0.4818, allocations: 0.8442 MB / 0.6128 GB, free: 1.363 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.4819, allocations: 106.8 kB / 0.6129 GB, free: 1.234 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.4823, allocations: 308.5 kB / 0.6132 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.4824, allocations: 29.7 kB / 0.6132 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.4825, allocations: 204.2 kB / 0.6134 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.053e-05/0.4826, allocations: 86.83 kB / 0.6135 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.4826, allocations: 7.938 kB / 0.6135 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4828, allocations: 346.8 kB / 0.6138 GB, free: 248 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.4832, allocations: 151.8 kB / 0.614 GB, free: 96 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004492/0.4836, allocations: 251.1 kB / 0.6142 GB, free: 15.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000792/0.4844, allocations: 387.5 kB / 0.6146 GB, free: 15.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4844, allocations: 0 / 0.6146 GB, free: 15.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009911/0.4854, allocations: 454.2 kB / 0.615 GB, free: 14.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/0.4855, allocations: 4 kB / 0.615 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.4855, allocations: 4 kB / 0.615 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.4855, allocations: 7.938 kB / 0.615 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/0.4859, allocations: 88.19 kB / 0.6151 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.4859, allocations: 11.94 kB / 0.6151 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.4863, allocations: 59.66 kB / 0.6152 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.437e-05/0.4863, allocations: 15.98 kB / 0.6152 GB, free: 14.76 MB / 442.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.0002238/0.4866, allocations: 166.2 kB / 0.6154 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.962e-05/0.4867, allocations: 35.61 kB / 0.6154 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002388/0.4891, allocations: 1.928 MB / 0.6173 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.58e-05/0.4891, allocations: 31.89 kB / 0.6173 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4891, allocations: 0 / 0.6173 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.4891, allocations: 3.984 kB / 0.6173 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.4902, allocations: 1.019 MB / 0.6183 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.4903, allocations: 3.938 kB / 0.6183 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.4906, allocations: 79.94 kB / 0.6184 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.4906, allocations: 0 / 0.6184 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.4906, allocations: 8 kB / 0.6184 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.428e-06/0.4906, allocations: 11.94 kB / 0.6184 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4906, allocations: 0 / 0.6184 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.4921, allocations: 1.101 MB / 0.6195 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.4924, allocations: 215.6 kB / 0.6197 GB, free: 10.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.563e-05/0.4924, allocations: 8 kB / 0.6197 GB, free: 10.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003428/0.4928, allocations: 47.81 kB / 0.6197 GB, free: 10.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.4929, allocations: 31.95 kB / 0.6198 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.4929, allocations: 15.98 kB / 0.6198 GB, free: 9.965 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003587/0.4933, allocations: 319.1 kB / 0.6201 GB, free: 9.648 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4933, allocations: 4 kB / 0.6201 GB, free: 9.645 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003857/0.4972, allocations: 0.9954 MB / 0.6211 GB, free: 8.648 MB / 442.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.007216/0.5044, allocations: 1.172 MB / 0.6222 GB, free: 7.473 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.5059, allocations: 0.6107 MB / 0.6228 GB, free: 6.863 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.506, allocations: 8 kB / 0.6228 GB, free: 6.855 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007816/0.5068, allocations: 0.5204 MB / 0.6233 GB, free: 6.336 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.5082, allocations: 209.8 kB / 0.6235 GB, free: 6.137 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.511, allocations: 1.894 MB / 0.6254 GB, free: 4.211 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005806/0.5116, allocations: 0.9638 MB / 0.6263 GB, free: 3.219 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005858/0.5122, allocations: 290.7 kB / 0.6266 GB, free: 2.938 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.5123, allocations: 35.44 kB / 0.6266 GB, free: 2.902 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5123, allocations: 0 / 0.6266 GB, free: 2.902 MB / 442.7 MB Notification: Performance of Templates: time 0.05534/0.5677, allocations: 38.75 MB / 0.6645 GB, free: 12.2 MB / 490.7 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches