Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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|V1.minLimiter.y|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.TestValveCompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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|V1.minLimiter.y|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.TestValveCompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 96.23 kB / 292.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3173/0.3173, allocations: 44.21 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.0003059, allocations: 8 kB / 459.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3646, allocations: 61.89 MB / 0.5096 GB, free: 38.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.212/7.577, allocations: 2.777 GB / 3.286 GB, free: 104 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/7.577, allocations: 86.69 kB / 3.287 GB, free: 104 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.8338/8.411, allocations: 240.1 MB / 3.521 GB, free: 78.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.414e-06/8.411, allocations: 0 / 3.521 GB, free: 78.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.769e-05/8.411, allocations: 17.64 kB / 3.521 GB, free: 78.25 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005867/8.417, allocations: 1.337 MB / 3.522 GB, free: 77.58 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/8.417, allocations: 9.312 kB / 3.522 GB, free: 77.58 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001924/8.419, allocations: 254.3 kB / 3.523 GB, free: 77.56 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006741/8.42, allocations: 420.2 kB / 3.523 GB, free: 77.34 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/8.42, allocations: 28.84 kB / 3.523 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/8.42, allocations: 33.44 kB / 3.523 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/8.421, allocations: 0.631 MB / 3.524 GB, free: 77.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/8.421, allocations: 1.031 kB / 3.524 GB, free: 77.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/8.421, allocations: 14.59 kB / 3.524 GB, free: 77.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/8.421, allocations: 7.438 kB / 3.524 GB, free: 77.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/8.423, allocations: 0.5896 MB / 3.524 GB, free: 77.2 MB / 0.5261 GB 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.00263/8.425, allocations: 2.722 MB / 3.527 GB, free: 75.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/8.427, allocations: 0.5541 MB / 3.527 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04093/8.468, allocations: 24.08 MB / 3.551 GB, free: 60.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/8.468, allocations: 35.41 kB / 3.551 GB, free: 60.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.305e-06/8.468, allocations: 6.547 kB / 3.551 GB, free: 60.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.002473/8.47, allocations: 0.8203 MB / 3.552 GB, free: 60.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/8.47, allocations: 109.9 kB / 3.552 GB, free: 60.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/8.471, allocations: 348 kB / 3.552 GB, free: 60.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/8.471, allocations: 29.58 kB / 3.552 GB, free: 60.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/8.471, allocations: 225.3 kB / 3.553 GB, free: 60.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.791e-05/8.471, allocations: 94.48 kB / 3.553 GB, free: 60.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.828e-05/8.471, allocations: 6.25 kB / 3.553 GB, free: 60.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.737e-05/8.471, allocations: 355.7 kB / 3.553 GB, free: 59.78 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/8.471, allocations: 151.4 kB / 3.553 GB, free: 59.78 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/8.472, allocations: 274 kB / 3.553 GB, free: 59.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/8.472, allocations: 182.8 kB / 3.554 GB, free: 59.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/8.472, allocations: 0 / 3.554 GB, free: 59.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000865/8.473, allocations: 496.6 kB / 3.554 GB, free: 59.58 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002542/8.473, allocations: 1.4 MB / 3.555 GB, free: 58.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/8.473, allocations: 3.594 kB / 3.555 GB, free: 58.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/8.473, allocations: 6.953 kB / 3.555 GB, free: 58.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/8.474, allocations: 110.6 kB / 3.556 GB, free: 58.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/8.474, allocations: 9.828 kB / 3.556 GB, free: 58.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/8.474, allocations: 77.05 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/8.474, allocations: 25.11 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.081e-06/8.474, allocations: 3.594 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007389/8.475, allocations: 415.5 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/8.475, allocations: 6.406 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.681e-06/8.475, allocations: 11.66 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000325/8.475, allocations: 104.7 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/8.475, allocations: 7.156 kB / 3.556 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/8.476, allocations: 68.22 kB / 3.556 GB, free: 58.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/8.476, allocations: 21.3 kB / 3.556 GB, free: 58.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.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 (44): * Single equations (assignments): 44 * 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.0001933/8.476, allocations: 256.7 kB / 3.556 GB, free: 57.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/8.476, allocations: 45.03 kB / 3.557 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/8.478, allocations: 1.948 MB / 3.558 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/8.478, allocations: 32.45 kB / 3.558 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/8.478, allocations: 3.906 kB / 3.558 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/8.478, allocations: 7.297 kB / 3.558 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008242/8.479, allocations: 1.05 MB / 3.559 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/8.479, allocations: 0 / 3.559 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/8.479, allocations: 89.56 kB / 3.56 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/8.479, allocations: 6.688 kB / 3.56 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/8.479, allocations: 3.625 kB / 3.56 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/8.479, allocations: 3.906 kB / 3.56 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/8.479, allocations: 0 / 3.56 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/8.48, allocations: 1.113 MB / 3.561 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/8.48, allocations: 265.2 kB / 3.561 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.193e-05/8.481, allocations: 8.312 kB / 3.561 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/8.481, allocations: 41.77 kB / 3.561 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.01e-05/8.481, allocations: 41.38 kB / 3.561 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/8.481, allocations: 14.19 kB / 3.561 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000357/8.481, allocations: 379.2 kB / 3.561 GB, free: 56.87 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/8.481, allocations: 0 / 3.561 GB, free: 56.87 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005162/8.486, allocations: 1.172 MB / 3.563 GB, free: 56.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * 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.005185/8.492, allocations: 1.428 MB / 3.564 GB, free: 56.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001459/8.493, allocations: 0.8533 MB / 3.565 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/8.493, allocations: 0 / 3.565 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004857/8.494, allocations: 0.52 MB / 3.565 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/8.495, allocations: 225.8 kB / 3.565 GB, free: 56.39 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/8.497, allocations: 2.004 MB / 3.567 GB, free: 55.49 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/8.497, allocations: 1.003 MB / 3.568 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007185/8.498, allocations: 0.5404 MB / 3.569 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/8.498, allocations: 55.66 kB / 3.569 GB, free: 54.77 MB / 0.5261 GB Notification: Performance of SimCode: time 2.3e-07/8.498, allocations: 0 / 3.569 GB, free: 54.77 MB / 0.5261 GB Notification: Performance of Templates: time 0.03937/8.537, allocations: 32.78 MB / 3.601 GB, free: 53.26 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCompressible/TestValveCompressible.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches