Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008943/0.0008943, allocations: 195.7 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007881/0.0007881, allocations: 100.2 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3588/0.3588, allocations: 44.99 MB / 397 MB, free: 31.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002671, allocations: 8.219 kB / 470.8 MB, free: 7.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3058, allocations: 63.1 MB / 0.5214 GB, free: 38.46 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02342/0.3293, allocations: 32.56 MB / 0.5532 GB, free: 12.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.3469, allocations: 19.96 MB / 0.5727 GB, free: 11.85 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004675/0.3474, allocations: 14.47 kB / 0.5727 GB, free: 11.84 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007598/0.3482, allocations: 215.7 kB / 0.5729 GB, free: 11.67 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.3585, allocations: 2.926 MB / 0.5757 GB, free: 9.484 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007217/0.3657, allocations: 1.977 MB / 0.5777 GB, free: 8.016 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001552/0.3673, allocations: 1.138 MB / 0.5788 GB, free: 7.387 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003852/0.3677, allocations: 208.3 kB / 0.579 GB, free: 7.258 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007672/0.3685, allocations: 409 kB / 0.5794 GB, free: 7.027 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003409/0.3688, allocations: 262.6 kB / 0.5796 GB, free: 6.883 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.3689, allocations: 15.78 kB / 0.5796 GB, free: 6.883 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01404/0.3829, allocations: 6.868 MB / 0.5863 GB, free: 1.633 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.3831, allocations: 79.72 kB / 0.5864 GB, free: 1.555 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003753/0.3835, allocations: 236.6 kB / 0.5866 GB, free: 1.316 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.3948, allocations: 4.381 MB / 0.5909 GB, free: 12.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.3948, allocations: 0 / 0.5909 GB, free: 12.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3948, allocations: 0 / 0.5909 GB, free: 12.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.3948, allocations: 4 kB / 0.5909 GB, free: 12.92 MB / 410.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.003145/0.398, allocations: 1.162 MB / 0.5921 GB, free: 11.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.398, allocations: 11.97 kB / 0.5921 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.3998, allocations: 216.3 kB / 0.5923 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.4004, allocations: 375.2 kB / 0.5926 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.4005, allocations: 25.03 kB / 0.5927 GB, free: 11.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.4e-05/0.4005, allocations: 32.38 kB / 0.5927 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.402, allocations: 0.6017 MB / 0.5933 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4021, allocations: 4 kB / 0.5933 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.4021, allocations: 12 kB / 0.5933 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.4021, allocations: 8 kB / 0.5933 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.4036, allocations: 0.564 MB / 0.5939 GB, free: 9.801 MB / 410.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.002968/0.4066, allocations: 2.64 MB / 0.5964 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.4081, allocations: 498.1 kB / 0.5969 GB, free: 6.426 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004179/0.4085, allocations: 200.7 kB / 0.5971 GB, free: 6.227 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04487/0.4534, allocations: 26.98 MB / 0.6234 GB, free: 7.844 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.4534, allocations: 38.55 kB / 0.6235 GB, free: 7.797 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.4534, allocations: 4 kB / 0.6235 GB, free: 7.793 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.002733/0.4562, allocations: 0.8517 MB / 0.6243 GB, free: 6.938 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.4563, allocations: 106.8 kB / 0.6244 GB, free: 6.809 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.4566, allocations: 308.5 kB / 0.6247 GB, free: 6.496 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.4566, allocations: 29.7 kB / 0.6247 GB, free: 6.461 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.4568, allocations: 204.2 kB / 0.6249 GB, free: 6.254 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.185e-05/0.4569, allocations: 82.83 kB / 0.625 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/0.4569, allocations: 8 kB / 0.625 GB, free: 6.164 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.457, allocations: 342.8 kB / 0.6253 GB, free: 5.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.4574, allocations: 151.9 kB / 0.6255 GB, free: 5.672 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.4578, allocations: 259.6 kB / 0.6257 GB, free: 5.379 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007849/0.4586, allocations: 389 kB / 0.6261 GB, free: 4.965 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4586, allocations: 4 kB / 0.6261 GB, free: 4.961 MB / 442.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009595/0.4596, allocations: 455.1 kB / 0.6266 GB, free: 4.512 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4596, allocations: 8 kB / 0.6266 GB, free: 4.504 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.4596, allocations: 4 kB / 0.6266 GB, free: 4.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4597, allocations: 7.938 kB / 0.6266 GB, free: 4.492 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003495/0.46, allocations: 91.81 kB / 0.6267 GB, free: 4.402 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.46, allocations: 4 kB / 0.6267 GB, free: 4.398 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.4604, allocations: 59.84 kB / 0.6267 GB, free: 4.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-05/0.4605, allocations: 16 kB / 0.6267 GB, free: 4.324 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.0001939/0.4607, allocations: 161.8 kB / 0.6269 GB, free: 4.156 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.467e-05/0.4607, allocations: 35.56 kB / 0.6269 GB, free: 4.121 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.4632, allocations: 1.924 MB / 0.6288 GB, free: 2.191 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/0.4632, allocations: 35.88 kB / 0.6288 GB, free: 2.156 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.4632, allocations: 0 / 0.6288 GB, free: 2.156 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4632, allocations: 0 / 0.6288 GB, free: 2.156 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.4643, allocations: 1.023 MB / 0.6298 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.4643, allocations: 4 kB / 0.6298 GB, free: 1.078 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002896/0.4646, allocations: 75.94 kB / 0.6299 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.4646, allocations: 0 / 0.6299 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.4646, allocations: 11.98 kB / 0.6299 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4646, allocations: 7.875 kB / 0.6299 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4647, allocations: 4 kB / 0.6299 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.4661, allocations: 1.092 MB / 0.631 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.4663, allocations: 215.6 kB / 0.6312 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/0.4664, allocations: 8 kB / 0.6312 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002932/0.4667, allocations: 55.73 kB / 0.6313 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.4668, allocations: 39.8 kB / 0.6313 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.4668, allocations: 12 kB / 0.6313 GB, free: 15.52 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003534/0.4672, allocations: 319.1 kB / 0.6316 GB, free: 15.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4672, allocations: 0 / 0.6316 GB, free: 15.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002882/0.4701, allocations: 1.003 MB / 0.6326 GB, free: 14.2 MB / 458.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.005266/0.4754, allocations: 1.179 MB / 0.6338 GB, free: 13.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.4766, allocations: 0.6102 MB / 0.6343 GB, free: 12.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.4766, allocations: 0.5625 kB / 0.6343 GB, free: 12.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006953/0.4773, allocations: 0.5256 MB / 0.6349 GB, free: 11.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.4785, allocations: 213.6 kB / 0.6351 GB, free: 11.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.4809, allocations: 1.883 MB / 0.6369 GB, free: 9.773 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.4814, allocations: 0.9677 MB / 0.6378 GB, free: 8.777 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005012/0.4819, allocations: 266.8 kB / 0.6381 GB, free: 8.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.482, allocations: 43.42 kB / 0.6381 GB, free: 8.477 MB / 458.7 MB Notification: Performance of SimCode: time 1.052e-06/0.482, allocations: 0 / 0.6381 GB, free: 8.477 MB / 458.7 MB Notification: Performance of Templates: time 0.05551/0.5375, allocations: 38.84 MB / 0.6761 GB, free: 1.691 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches