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.001132/0.001132, allocations: 97.53 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 173.6 kB / 16.57 MB, free: 6.379 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.243/1.243, allocations: 205.4 MB / 222.7 MB, free: 5.676 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.2974/0.2974, allocations: 43.55 MB / 314.5 MB, free: 9.008 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.0004608/0.0004608, allocations: 12 kB / 383.9 MB, free: 8.262 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1091, allocations: 58.85 MB / 442.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2039/0.313, allocations: 23.78 MB / 466.5 MB, free: 36.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.3236, allocations: 11.36 MB / 477.9 MB, free: 30.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005259/0.3241, allocations: 14.12 kB / 477.9 MB, free: 30.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007619/0.3249, allocations: 209.7 kB / 478.1 MB, free: 30.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00774/0.3327, allocations: 2.814 MB / 480.9 MB, free: 29.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005449/0.3381, allocations: 1.906 MB / 482.8 MB, free: 28.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008549/0.339, allocations: 0.534 MB / 483.4 MB, free: 27.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003226/0.3393, allocations: 209.1 kB / 483.6 MB, free: 27.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000666/0.34, allocations: 403.2 kB / 484 MB, free: 27.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.3402, allocations: 197 kB / 484.2 MB, free: 27.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.3403, allocations: 15.03 kB / 484.2 MB, free: 27.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01256/0.3528, allocations: 7.013 MB / 491.2 MB, free: 25.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.3531, allocations: 78.33 kB / 491.3 MB, free: 25.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.3533, allocations: 101.2 kB / 491.4 MB, free: 25.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006789/0.3601, allocations: 2.946 MB / 494.3 MB, free: 25.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.3601, allocations: 0 / 494.3 MB, free: 25.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3601, allocations: 0.9062 kB / 494.3 MB, free: 25.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.3601, allocations: 0 / 494.3 MB, free: 25.27 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.004264/0.3644, allocations: 1.168 MB / 495.5 MB, free: 24.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3645, allocations: 9.344 kB / 495.5 MB, free: 24.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001736/0.3662, allocations: 216.5 kB / 495.7 MB, free: 24.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.3667, allocations: 353 kB / 496 MB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.264e-05/0.3667, allocations: 30.05 kB / 496.1 MB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.3668, allocations: 27 kB / 496.1 MB, free: 24.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.3683, allocations: 0.6003 MB / 496.7 MB, free: 23.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.3683, allocations: 0 / 496.7 MB, free: 23.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.3683, allocations: 12.41 kB / 496.7 MB, free: 23.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.3683, allocations: 12.09 kB / 496.7 MB, free: 23.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.3699, allocations: 0.5639 MB / 497.3 MB, free: 23.76 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.002592/0.3725, allocations: 2.632 MB / 499.9 MB, free: 21.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.3741, allocations: 498.5 kB / 0.4887 GB, free: 21.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04433/0.4184, allocations: 24.42 MB / 0.5125 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.4185, allocations: 41.19 kB / 0.5126 GB, free: 3.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.4185, allocations: 0 / 0.5126 GB, free: 3.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.002635/0.4211, allocations: 0.8474 MB / 0.5134 GB, free: 2.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.4212, allocations: 110.6 kB / 0.5135 GB, free: 2.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.4215, allocations: 307.3 kB / 0.5138 GB, free: 2.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.4215, allocations: 30.92 kB / 0.5138 GB, free: 2.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.687e-05/0.4216, allocations: 203.6 kB / 0.514 GB, free: 2.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.4217, allocations: 83.47 kB / 0.5141 GB, free: 1.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/0.4217, allocations: 4 kB / 0.5141 GB, free: 1.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.468e-05/0.4217, allocations: 356 kB / 0.5144 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.4221, allocations: 149.4 kB / 0.5146 GB, free: 1.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.4225, allocations: 241.5 kB / 0.5148 GB, free: 1.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.4229, allocations: 175.2 kB / 0.515 GB, free: 1.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4229, allocations: 0 / 0.515 GB, free: 1.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008223/0.4237, allocations: 455.7 kB / 0.5154 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.4237, allocations: 6.312 kB / 0.5154 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4237, allocations: 0 / 0.5154 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4238, allocations: 7.344 kB / 0.5154 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/0.4241, allocations: 81.95 kB / 0.5155 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.4241, allocations: 9.391 kB / 0.5155 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003272/0.4244, allocations: 60.62 kB / 0.5156 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.4244, allocations: 16.38 kB / 0.5156 GB, free: 1.031 MB / 382.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 (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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.4246, allocations: 168 kB / 0.5157 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.327e-05/0.4247, allocations: 42.41 kB / 0.5158 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.4267, allocations: 1.933 MB / 0.5177 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-05/0.4267, allocations: 36.31 kB / 0.5177 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4267, allocations: 0 / 0.5177 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4267, allocations: 1.438 kB / 0.5177 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.4278, allocations: 1.022 MB / 0.5187 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.4278, allocations: 1.25 kB / 0.5187 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.4281, allocations: 85.22 kB / 0.5188 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.4281, allocations: 1.906 kB / 0.5188 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.4281, allocations: 8.438 kB / 0.5188 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4281, allocations: 3.984 kB / 0.5188 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4281, allocations: 1.938 kB / 0.5188 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.4296, allocations: 1.103 MB / 0.5199 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.4298, allocations: 219.5 kB / 0.5201 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.4299, allocations: 8.812 kB / 0.5201 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.4302, allocations: 47.81 kB / 0.5201 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.4304, allocations: 39.88 kB / 0.5202 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.4304, allocations: 8 kB / 0.5202 GB, free: 13.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003358/0.4307, allocations: 323.1 kB / 0.5205 GB, free: 13.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4307, allocations: 0 / 0.5205 GB, free: 13.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004998/0.4357, allocations: 0.9955 MB / 0.5215 GB, free: 12.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004301/0.44, allocations: 1.164 MB / 0.5226 GB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.4412, allocations: 0.6169 MB / 0.5232 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4412, allocations: 0 / 0.5232 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006448/0.4419, allocations: 0.5282 MB / 0.5237 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009966/0.4429, allocations: 204 kB / 0.5239 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.445, allocations: 1.869 MB / 0.5257 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.4455, allocations: 0.9836 MB / 0.5267 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004243/0.4459, allocations: 262.9 kB / 0.527 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.531e-05/0.446, allocations: 39.44 kB / 0.527 GB, free: 6.781 MB / 398.1 MB Notification: Performance of SimCode: time 2.795e-06/0.446, allocations: 4 kB / 0.527 GB, free: 6.777 MB / 398.1 MB Notification: Performance of Templates: time 0.04926/0.4953, allocations: 39.08 MB / 0.5652 GB, free: 15.68 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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