Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 181.6 kB / 17.41 MB, free: 4.406 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.422/1.422, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.0009821/0.0009821, allocations: 95.88 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3627/0.3627, allocations: 43.56 MB / 363.8 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003752, allocations: 16 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1332, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.076/6.21, allocations: 2.755 GB / 3.235 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/6.21, allocations: 86.27 kB / 3.235 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6913/6.901, allocations: 217.2 MB / 3.447 GB, free: 62.05 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.754e-06/6.901, allocations: 0 / 3.447 GB, free: 62.05 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.588e-05/6.901, allocations: 7.531 kB / 3.447 GB, free: 62.05 MB / 0.4948 GB 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.004514/6.906, allocations: 1.193 MB / 3.448 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/6.906, allocations: 10.12 kB / 3.448 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/6.908, allocations: 226.6 kB / 3.448 GB, free: 61.24 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000577/6.908, allocations: 375 kB / 3.448 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/6.908, allocations: 32.38 kB / 3.449 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.152e-05/6.908, allocations: 26.84 kB / 3.449 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/6.91, allocations: 0.5975 MB / 3.449 GB, free: 60.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/6.91, allocations: 11.81 kB / 3.449 GB, free: 60.65 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/6.91, allocations: 18.66 kB / 3.449 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/6.91, allocations: 7.562 kB / 3.449 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/6.911, allocations: 0.5547 MB / 3.45 GB, free: 60.52 MB / 0.4948 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.002555/6.914, allocations: 2.61 MB / 3.452 GB, free: 58.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/6.915, allocations: 469.1 kB / 3.453 GB, free: 58.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003821/6.916, allocations: 185.7 kB / 3.453 GB, free: 58.15 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03986/6.956, allocations: 24.07 MB / 3.476 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/6.956, allocations: 38.5 kB / 3.476 GB, free: 42.66 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 4.078e-06/6.956, allocations: 0 / 3.476 GB, free: 42.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.002748/6.959, allocations: 0.8101 MB / 3.477 GB, free: 42.45 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/6.959, allocations: 110 kB / 3.477 GB, free: 42.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/6.959, allocations: 313.4 kB / 3.478 GB, free: 42.15 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/6.959, allocations: 29.7 kB / 3.478 GB, free: 42.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/6.959, allocations: 202.7 kB / 3.478 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.109e-05/6.959, allocations: 88.11 kB / 3.478 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/6.959, allocations: 4 kB / 3.478 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.983e-05/6.959, allocations: 345.5 kB / 3.478 GB, free: 41.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/6.96, allocations: 137 kB / 3.478 GB, free: 41.51 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/6.96, allocations: 238.9 kB / 3.479 GB, free: 41.36 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007188/6.961, allocations: 374.7 kB / 3.479 GB, free: 41.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/6.961, allocations: 0 / 3.479 GB, free: 41.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009215/6.962, allocations: 428.8 kB / 3.479 GB, free: 41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/6.962, allocations: 7.781 kB / 3.479 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/6.962, allocations: 2.938 kB / 3.479 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/6.962, allocations: 3.188 kB / 3.479 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/6.962, allocations: 89.72 kB / 3.479 GB, free: 40.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/6.962, allocations: 10.62 kB / 3.479 GB, free: 40.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/6.963, allocations: 65.69 kB / 3.48 GB, free: 40.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/6.963, allocations: 16.72 kB / 3.48 GB, free: 40.95 MB / 0.4948 GB 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.0001847/6.963, allocations: 162.6 kB / 3.48 GB, free: 40.81 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.232e-05/6.963, allocations: 33.92 kB / 3.48 GB, free: 40.79 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/6.965, allocations: 1.924 MB / 3.482 GB, free: 39.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/6.965, allocations: 29.95 kB / 3.482 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/6.965, allocations: 3.938 kB / 3.482 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/6.965, allocations: 4 kB / 3.482 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008865/6.966, allocations: 1.003 MB / 3.483 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/6.966, allocations: 0 / 3.483 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/6.966, allocations: 83.86 kB / 3.483 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/6.966, allocations: 0 / 3.483 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/6.966, allocations: 11.97 kB / 3.483 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/6.966, allocations: 0 / 3.483 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/6.966, allocations: 3.938 kB / 3.483 GB, free: 39.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/6.967, allocations: 1.084 MB / 3.484 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/6.968, allocations: 218 kB / 3.484 GB, free: 38.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/6.968, allocations: 7.969 kB / 3.484 GB, free: 38.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/6.968, allocations: 38.33 kB / 3.484 GB, free: 38.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.192e-05/6.968, allocations: 42.12 kB / 3.484 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/6.968, allocations: 15.39 kB / 3.484 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003113/6.969, allocations: 320.9 kB / 3.484 GB, free: 38.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/6.969, allocations: 3.938 kB / 3.484 GB, free: 38.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004123/6.973, allocations: 1.014 MB / 3.485 GB, free: 38.19 MB / 0.4948 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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.007247/6.98, allocations: 1.375 MB / 3.487 GB, free: 37.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001271/6.981, allocations: 0.5991 MB / 3.487 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/6.981, allocations: 4 kB / 3.487 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006221/6.982, allocations: 0.5093 MB / 3.488 GB, free: 37.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/6.983, allocations: 208 kB / 3.488 GB, free: 37.33 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/6.985, allocations: 1.896 MB / 3.49 GB, free: 36.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/6.986, allocations: 0.9614 MB / 3.491 GB, free: 35.47 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/6.986, allocations: 38.91 kB / 3.491 GB, free: 35.46 MB / 0.4948 GB Notification: Performance of SimCode: time 7.62e-07/6.986, allocations: 3.906 kB / 3.491 GB, free: 35.46 MB / 0.4948 GB Notification: Performance of Templates: time 0.03356/7.019, allocations: 23.83 MB / 3.514 GB, free: 22.51 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches