Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 103.4 kB / 15.98 MB, free: 5.871 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.001084/0.001084, allocations: 196.4 kB / 16.91 MB, free: 5.734 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.392/1.392, allocations: 205.1 MB / 222.8 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.304/0.304, allocations: 43.5 MB / 313.6 MB, free: 8.496 MB / 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.00135/0.00135, allocations: 67.91 kB / 382.2 MB, free: 8.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.106, allocations: 57.79 MB / 440 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1979/0.3039, allocations: 28.24 MB / 468.3 MB, free: 34.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.3185, allocations: 13.38 MB / 481.6 MB, free: 26.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003724/0.319, allocations: 13.84 kB / 481.6 MB, free: 26.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006938/0.3197, allocations: 218.4 kB / 481.9 MB, free: 25.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00855/0.3283, allocations: 3.221 MB / 485.1 MB, free: 24.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005531/0.3338, allocations: 2.117 MB / 487.2 MB, free: 23.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.3349, allocations: 0.8928 MB / 488.1 MB, free: 23.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003536/0.3353, allocations: 246.2 kB / 488.3 MB, free: 23.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007472/0.336, allocations: 434.1 kB / 488.8 MB, free: 22.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.3363, allocations: 278.9 kB / 489 MB, free: 22.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.6e-05/0.3364, allocations: 33.31 kB / 489.1 MB, free: 22.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.3479, allocations: 7.116 MB / 496.2 MB, free: 20.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.3481, allocations: 98.36 kB / 496.3 MB, free: 20.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003174/0.3484, allocations: 225.1 kB / 496.5 MB, free: 20.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.3602, allocations: 4.419 MB / 0.4892 GB, free: 19.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.3603, allocations: 1.25 kB / 0.4892 GB, free: 19.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3603, allocations: 0 / 0.4892 GB, free: 19.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.3603, allocations: 0 / 0.4892 GB, free: 19.46 MB / 382.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.00527/0.3656, allocations: 1.232 MB / 0.4904 GB, free: 18.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3656, allocations: 14.3 kB / 0.4904 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001707/0.3673, allocations: 210 kB / 0.4906 GB, free: 18.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.3678, allocations: 357.9 kB / 0.4909 GB, free: 18.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.3679, allocations: 29.75 kB / 0.491 GB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.674e-05/0.3679, allocations: 30.95 kB / 0.491 GB, free: 18.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.3695, allocations: 0.5811 MB / 0.4916 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.3695, allocations: 1.375 kB / 0.4916 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.3695, allocations: 11.62 kB / 0.4916 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3696, allocations: 11.69 kB / 0.4916 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.3711, allocations: 0.5332 MB / 0.4921 GB, free: 17.9 MB / 382.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.002612/0.3737, allocations: 2.614 MB / 0.4947 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.3752, allocations: 464.7 kB / 0.4951 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/0.3756, allocations: 193.1 kB / 0.4953 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04352/0.4191, allocations: 24.21 MB / 0.5189 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.4192, allocations: 33.47 kB / 0.519 GB, free: 12.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.903e-06/0.4192, allocations: 0 / 0.519 GB, free: 12.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002721/0.422, allocations: 0.7913 MB / 0.5197 GB, free: 12.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.422, allocations: 109.4 kB / 0.5198 GB, free: 11.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.4224, allocations: 311.2 kB / 0.5201 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.4224, allocations: 29.7 kB / 0.5202 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.4226, allocations: 202.7 kB / 0.5204 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.4227, allocations: 85.59 kB / 0.5204 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.4228, allocations: 73.88 kB / 0.5205 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4229, allocations: 346.1 kB / 0.5208 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.4233, allocations: 138.9 kB / 0.521 GB, free: 10.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.4237, allocations: 228.8 kB / 0.5212 GB, free: 10.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007558/0.4245, allocations: 364.1 kB / 0.5215 GB, free: 10.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4245, allocations: 1.531 kB / 0.5215 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009487/0.4255, allocations: 419.3 kB / 0.5219 GB, free: 10.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.4255, allocations: 8 kB / 0.5219 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4255, allocations: 4 kB / 0.5219 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.4255, allocations: 4 kB / 0.5219 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.4259, allocations: 92.75 kB / 0.522 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.4259, allocations: 4 kB / 0.522 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.4262, allocations: 51.66 kB / 0.5221 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.4263, allocations: 19.98 kB / 0.5221 GB, free: 10.08 MB / 398.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.0001822/0.4264, allocations: 161.7 kB / 0.5223 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-05/0.4265, allocations: 35.53 kB / 0.5223 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00239/0.4289, allocations: 1.898 MB / 0.5242 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/0.429, allocations: 35.83 kB / 0.5242 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.429, allocations: 0 / 0.5242 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.429, allocations: 3.984 kB / 0.5242 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.43, allocations: 1.015 MB / 0.5252 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.43, allocations: 0 / 0.5252 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003015/0.4304, allocations: 71.88 kB / 0.5252 GB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.4304, allocations: 8 kB / 0.5253 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.4304, allocations: 4 kB / 0.5253 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.4304, allocations: 7.938 kB / 0.5253 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4304, allocations: 0 / 0.5253 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.4318, allocations: 1.082 MB / 0.5263 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.4319, allocations: 156 kB / 0.5265 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.241e-05/0.432, allocations: 27.69 kB / 0.5265 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.4323, allocations: 43.02 kB / 0.5265 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.4324, allocations: 35.95 kB / 0.5266 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.4325, allocations: 12 kB / 0.5266 GB, free: 5.395 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003375/0.4328, allocations: 323.1 kB / 0.5269 GB, free: 5.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4328, allocations: 0 / 0.5269 GB, free: 5.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004429/0.4372, allocations: 1.003 MB / 0.5279 GB, free: 4.078 MB / 398.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.006188/0.4434, allocations: 1.176 MB / 0.529 GB, free: 2.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.4449, allocations: 0.6184 MB / 0.5296 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.445, allocations: 0 / 0.5296 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000652/0.4456, allocations: 0.5087 MB / 0.5301 GB, free: 1.773 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.4468, allocations: 222.3 kB / 0.5303 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.4489, allocations: 1.848 MB / 0.5321 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.4494, allocations: 0.9599 MB / 0.5331 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004368/0.4498, allocations: 280.9 kB / 0.5333 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.594e-05/0.4499, allocations: 43.42 kB / 0.5334 GB, free: 14.39 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4499, allocations: 4 kB / 0.5334 GB, free: 14.39 MB / 414.1 MB Notification: Performance of Templates: time 0.05178/0.5017, allocations: 39.2 MB / 0.5717 GB, free: 7.188 MB / 446.1 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