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.002183/0.002183, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 91.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2934/0.2934, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.042e-05/2.052e-05, allocations: 4 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.4048, allocations: 58.84 MB / 477.1 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.048/8.453, allocations: 2.754 GB / 3.219 GB, free: 34.83 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/8.453, allocations: 87.14 kB / 3.22 GB, free: 34.79 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.084/9.537, allocations: 213.9 MB / 3.428 GB, free: 27.84 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.813e-06/9.537, allocations: 0 / 3.428 GB, free: 27.84 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 2.627e-05/9.537, allocations: 8 kB / 3.428 GB, free: 27.84 MB / 0.4952 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.005188/9.542, allocations: 1.17 MB / 3.43 GB, free: 26.62 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/9.542, allocations: 16.03 kB / 3.43 GB, free: 26.61 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00231/9.545, allocations: 215.3 kB / 3.43 GB, free: 26.4 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006975/9.546, allocations: 374 kB / 3.43 GB, free: 26 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/9.546, allocations: 16 kB / 3.43 GB, free: 25.98 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/9.546, allocations: 19.94 kB / 3.43 GB, free: 25.96 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007157/9.546, allocations: 301.5 kB / 3.43 GB, free: 25.67 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007046/9.547, allocations: 381.5 kB / 3.431 GB, free: 25.25 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/9.547, allocations: 0 / 3.431 GB, free: 25.25 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.092e-05/9.547, allocations: 0 / 3.431 GB, free: 25.25 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/9.547, allocations: 11.95 kB / 3.431 GB, free: 25.24 MB / 0.4952 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.0269/9.574, allocations: 10.14 MB / 3.441 GB, free: 14.01 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006186/9.575, allocations: 234.7 kB / 3.441 GB, free: 13.77 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/9.575, allocations: 124.8 kB / 3.441 GB, free: 13.64 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4143/9.989, allocations: 24.13 MB / 3.465 GB, free: 76.53 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/9.989, allocations: 41.03 kB / 3.465 GB, free: 76.49 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=24): time 3.186e-06/9.989, allocations: 0 / 3.465 GB, free: 76.49 MB / 0.4952 GB Notification: Performance of matching and sorting (n=24): time 0.002655/9.992, allocations: 0.5081 MB / 3.465 GB, free: 76.45 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/9.992, allocations: 109.4 kB / 3.465 GB, free: 76.32 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003628/9.993, allocations: 227.6 kB / 3.465 GB, free: 76.23 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/9.993, allocations: 29.8 kB / 3.466 GB, free: 76.2 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/9.993, allocations: 269.5 kB / 3.466 GB, free: 76.03 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 8.212e-05/9.993, allocations: 77.41 kB / 3.466 GB, free: 75.99 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/9.993, allocations: 1.031 kB / 3.466 GB, free: 75.99 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.002e-05/9.993, allocations: 322.9 kB / 3.466 GB, free: 75.68 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/9.993, allocations: 85.67 kB / 3.466 GB, free: 75.68 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/9.993, allocations: 178.8 kB / 3.466 GB, free: 75.57 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009392/9.994, allocations: 161 kB / 3.467 GB, free: 75.57 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/9.994, allocations: 0 / 3.467 GB, free: 75.57 MB / 0.4952 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001397/9.996, allocations: 347.7 kB / 3.467 GB, free: 75.54 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/9.996, allocations: 10.89 kB / 3.467 GB, free: 75.54 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/9.996, allocations: 6.188 kB / 3.467 GB, free: 75.54 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/9.996, allocations: 4.688 kB / 3.467 GB, free: 75.54 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000659/9.997, allocations: 85.39 kB / 3.467 GB, free: 75.54 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/9.997, allocations: 6.359 kB / 3.467 GB, free: 75.54 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005727/9.997, allocations: 56.05 kB / 3.467 GB, free: 75.53 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/9.997, allocations: 16.39 kB / 3.467 GB, free: 75.53 MB / 0.4952 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 () * 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.0001191/9.997, allocations: 117.5 kB / 3.467 GB, free: 75.42 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.662e-05/9.997, allocations: 31.5 kB / 3.467 GB, free: 75.41 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/10, allocations: 1.628 MB / 3.469 GB, free: 75.23 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.263e-05/10, allocations: 25.83 kB / 3.469 GB, free: 75.23 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/10, allocations: 0.6562 kB / 3.469 GB, free: 75.23 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/10, allocations: 1.828 kB / 3.469 GB, free: 75.23 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/10, allocations: 0.8408 MB / 3.47 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/10, allocations: 1.062 kB / 3.47 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000611/10, allocations: 81.19 kB / 3.47 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/10, allocations: 2.438 kB / 3.47 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/10, allocations: 3.578 kB / 3.47 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/10, allocations: 6.859 kB / 3.47 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/10, allocations: 3.953 kB / 3.47 GB, free: 75.03 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/10, allocations: 0.9142 MB / 3.471 GB, free: 74.82 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002648/10, allocations: 213.5 kB / 3.471 GB, free: 74.68 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.21e-05/10, allocations: 1.672 kB / 3.471 GB, free: 74.68 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005346/10.01, allocations: 37.75 kB / 3.471 GB, free: 74.68 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/10.01, allocations: 32.53 kB / 3.471 GB, free: 74.68 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.849e-05/10.01, allocations: 16.33 kB / 3.471 GB, free: 74.68 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.000464/10.01, allocations: 286.3 kB / 3.471 GB, free: 74.59 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.31e-07/10.01, allocations: 0 / 3.471 GB, free: 74.59 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005229/10.01, allocations: 0.9869 MB / 3.472 GB, free: 74.59 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.008733/10.02, allocations: 1.431 MB / 3.474 GB, free: 74.48 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001082/10.02, allocations: 459 kB / 3.474 GB, free: 74.46 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/10.02, allocations: 8.125 kB / 3.474 GB, free: 74.46 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0006409/10.02, allocations: 415.3 kB / 3.474 GB, free: 74.46 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/10.02, allocations: 161.5 kB / 3.475 GB, free: 74.46 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/10.03, allocations: 1.058 MB / 3.476 GB, free: 74.19 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/10.03, allocations: 0.9574 MB / 3.477 GB, free: 73.49 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/10.03, allocations: 40.75 kB / 3.477 GB, free: 73.49 MB / 0.4952 GB Notification: Performance of SimCode: time 1.193e-06/10.03, allocations: 0 / 3.477 GB, free: 73.49 MB / 0.4952 GB Notification: Performance of Templates: time 0.05497/10.08, allocations: 26.58 MB / 3.503 GB, free: 71.73 MB / 0.4952 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