Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001487, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.971/1.971, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001066/0.001065, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2715/0.2715, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.422e-05, allocations: 4 kB / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1214, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.884/8.006, allocations: 2.772 GB / 3.244 GB, free: 70.77 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/8.006, allocations: 82.27 kB / 3.244 GB, free: 70.73 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.197/9.203, allocations: 236.9 MB / 3.476 GB, free: 52.05 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.703e-06/9.203, allocations: 0 / 3.476 GB, free: 52.05 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.496e-05/9.203, allocations: 19.98 kB / 3.476 GB, free: 52.03 MB / 0.5105 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.006242/9.209, allocations: 1.278 MB / 3.477 GB, free: 50.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/9.209, allocations: 8.031 kB / 3.477 GB, free: 50.69 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003084/9.212, allocations: 255.2 kB / 3.477 GB, free: 50.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/9.214, allocations: 408.3 kB / 3.478 GB, free: 50.01 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/9.214, allocations: 24.78 kB / 3.478 GB, free: 49.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.909e-05/9.214, allocations: 40 kB / 3.478 GB, free: 49.94 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/9.216, allocations: 0.6281 MB / 3.478 GB, free: 49.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/9.216, allocations: 8.281 kB / 3.478 GB, free: 49.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/9.216, allocations: 19.95 kB / 3.478 GB, free: 49.24 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/9.216, allocations: 8 kB / 3.478 GB, free: 49.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/9.218, allocations: 0.5299 MB / 3.479 GB, free: 48.7 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.004304/9.222, allocations: 2.731 MB / 3.482 GB, free: 45.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/9.225, allocations: 0.5025 MB / 3.482 GB, free: 45.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/9.225, allocations: 140.8 kB / 3.482 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07261/9.297, allocations: 24.15 MB / 3.506 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/9.298, allocations: 48.84 kB / 3.506 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 3.627e-06/9.298, allocations: 3.938 kB / 3.506 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.003048/9.301, allocations: 0.6608 MB / 3.507 GB, free: 17.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/9.301, allocations: 106.8 kB / 3.507 GB, free: 17.19 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005515/9.301, allocations: 331.1 kB / 3.507 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/9.301, allocations: 33.7 kB / 3.507 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/9.302, allocations: 266.6 kB / 3.507 GB, free: 16.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/9.302, allocations: 98.58 kB / 3.507 GB, free: 16.46 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/9.302, allocations: 4 kB / 3.507 GB, free: 16.46 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.873e-05/9.302, allocations: 338.8 kB / 3.508 GB, free: 16.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/9.302, allocations: 111.9 kB / 3.508 GB, free: 16.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003623/9.303, allocations: 235.3 kB / 3.508 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/9.303, allocations: 137.2 kB / 3.508 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/9.303, allocations: 0 / 3.508 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009449/9.304, allocations: 381.1 kB / 3.508 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002845/9.304, allocations: 1.387 MB / 3.51 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/9.304, allocations: 4 kB / 3.51 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/9.304, allocations: 11.98 kB / 3.51 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007839/9.305, allocations: 111.8 kB / 3.51 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/9.305, allocations: 4 kB / 3.51 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007862/9.306, allocations: 75.55 kB / 3.51 GB, free: 13.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/9.306, allocations: 20 kB / 3.51 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/9.306, allocations: 4 kB / 3.51 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008695/9.307, allocations: 335.8 kB / 3.51 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/9.307, allocations: 7.984 kB / 3.51 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/9.307, allocations: 4 kB / 3.51 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007198/9.308, allocations: 103.8 kB / 3.51 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/9.308, allocations: 15.94 kB / 3.511 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005381/9.308, allocations: 59.94 kB / 3.511 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/9.308, allocations: 20 kB / 3.511 GB, free: 12.95 MB / 0.5105 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 () * 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.0001712/9.308, allocations: 132.8 kB / 3.511 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/9.309, allocations: 43.53 kB / 3.511 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002753/9.311, allocations: 1.908 MB / 3.513 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.094e-05/9.312, allocations: 27.95 kB / 3.513 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/9.312, allocations: 3.953 kB / 3.513 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/9.312, allocations: 7.984 kB / 3.513 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/9.313, allocations: 1.047 MB / 3.514 GB, free: 9.715 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/9.313, allocations: 0 / 3.514 GB, free: 9.715 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006942/9.314, allocations: 91.86 kB / 3.514 GB, free: 9.625 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/9.314, allocations: 4 kB / 3.514 GB, free: 9.621 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.14e-05/9.314, allocations: 8 kB / 3.514 GB, free: 9.613 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/9.314, allocations: 3.984 kB / 3.514 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/9.314, allocations: 0 / 3.514 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/9.315, allocations: 1.05 MB / 3.515 GB, free: 8.547 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004079/9.316, allocations: 267.3 kB / 3.515 GB, free: 8.266 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/9.316, allocations: 4 kB / 3.515 GB, free: 8.262 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006259/9.317, allocations: 43.91 kB / 3.515 GB, free: 8.219 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/9.317, allocations: 39.88 kB / 3.515 GB, free: 8.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/9.317, allocations: 12 kB / 3.515 GB, free: 8.168 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005856/9.317, allocations: 369.5 kB / 3.516 GB, free: 7.809 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.21e-07/9.317, allocations: 0 / 3.516 GB, free: 7.809 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005695/9.323, allocations: 1.171 MB / 3.517 GB, free: 6.637 MB / 0.5105 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 () * 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.01004/9.333, allocations: 1.432 MB / 3.518 GB, free: 5.195 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001675/9.335, allocations: 0.7302 MB / 3.519 GB, free: 4.465 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/9.335, allocations: 0 / 3.519 GB, free: 4.465 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007237/9.336, allocations: 489.8 kB / 3.519 GB, free: 3.984 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/9.338, allocations: 218.1 kB / 3.519 GB, free: 3.773 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/9.341, allocations: 1.246 MB / 3.521 GB, free: 2.488 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/9.341, allocations: 0.9993 MB / 3.522 GB, free: 1.465 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/9.341, allocations: 55.36 kB / 3.522 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of SimCode: time 1.603e-06/9.341, allocations: 0 / 3.522 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of Templates: time 0.4178/9.759, allocations: 27.7 MB / 3.549 GB, free: 84.25 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveCompressible/TestValveCompressible.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches