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.002238/0.002245, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001665/0.001666, allocations: 102.8 kB / 270.9 MB, free: 13.38 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.289/0.289, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004758, allocations: 12 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1314, allocations: 58.86 MB / 490.2 MB, free: 9.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.04365/0.1751, allocations: 23.77 MB / 0.5019 GB, free: 1.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02317/0.1984, allocations: 11.37 MB / 0.513 GB, free: 6.109 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006149/0.1991, allocations: 11.94 kB / 0.5131 GB, free: 6.098 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.2001, allocations: 207 kB / 0.5133 GB, free: 5.895 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01258/0.2127, allocations: 2.813 MB / 0.516 GB, free: 3.074 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008255/0.221, allocations: 1.913 MB / 0.5179 GB, free: 1.156 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.2224, allocations: 0.5314 MB / 0.5184 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005481/0.2229, allocations: 197 kB / 0.5186 GB, free: 432 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.2243, allocations: 402.6 kB / 0.519 GB, free: 28 kB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3463/0.5706, allocations: 189.6 kB / 0.5191 GB, free: 13.82 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.5709, allocations: 18.97 kB / 0.5192 GB, free: 13.82 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02161/0.5925, allocations: 7.012 MB / 0.526 GB, free: 13.82 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.5928, allocations: 79.16 kB / 0.5261 GB, free: 13.82 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.593, allocations: 102.2 kB / 0.5262 GB, free: 13.79 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.6033, allocations: 2.946 MB / 0.5291 GB, free: 13.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.6034, allocations: 0 / 0.5291 GB, free: 13.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.6034, allocations: 0 / 0.5291 GB, free: 13.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.6034, allocations: 0 / 0.5291 GB, free: 13.67 MB / 362.7 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.00606/0.6095, allocations: 1.162 MB / 0.5302 GB, free: 12.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.6096, allocations: 8.156 kB / 0.5302 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002671/0.6122, allocations: 223.9 kB / 0.5304 GB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000878/0.6132, allocations: 350.1 kB / 0.5307 GB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.878e-05/0.6133, allocations: 30.2 kB / 0.5308 GB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.937e-05/0.6133, allocations: 27.72 kB / 0.5308 GB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002606/0.616, allocations: 0.5979 MB / 0.5314 GB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.616, allocations: 1.062 kB / 0.5314 GB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.971e-05/0.6161, allocations: 18.94 kB / 0.5314 GB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.6162, allocations: 8.062 kB / 0.5314 GB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002768/0.6189, allocations: 0.5591 MB / 0.532 GB, free: 12.58 MB / 362.7 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.004756/0.6237, allocations: 2.64 MB / 0.5345 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.6264, allocations: 0.4886 MB / 0.535 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08642/0.7129, allocations: 24.42 MB / 0.5589 GB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.713, allocations: 42.5 kB / 0.5589 GB, free: 8.102 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.625e-06/0.713, allocations: 2.906 kB / 0.5589 GB, free: 8.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004788/0.7178, allocations: 0.8519 MB / 0.5597 GB, free: 7.395 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.718, allocations: 102.8 kB / 0.5598 GB, free: 7.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005753/0.7186, allocations: 307 kB / 0.5601 GB, free: 7.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.411e-05/0.7187, allocations: 33.58 kB / 0.5602 GB, free: 6.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.7189, allocations: 252 kB / 0.5604 GB, free: 6.777 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.719, allocations: 81.67 kB / 0.5605 GB, free: 6.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.7191, allocations: 10.88 kB / 0.5605 GB, free: 6.703 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.7192, allocations: 325.7 kB / 0.5608 GB, free: 6.383 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007438/0.72, allocations: 151.2 kB / 0.5609 GB, free: 6.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008024/0.7208, allocations: 245 kB / 0.5612 GB, free: 6.039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007505/0.7216, allocations: 169.1 kB / 0.5613 GB, free: 5.922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.7216, allocations: 1.859 kB / 0.5613 GB, free: 5.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001781/0.7234, allocations: 427.2 kB / 0.5618 GB, free: 5.605 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.7235, allocations: 10.66 kB / 0.5618 GB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.7235, allocations: 7.984 kB / 0.5618 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/0.7235, allocations: 4 kB / 0.5618 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006421/0.7242, allocations: 81.98 kB / 0.5619 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.7242, allocations: 10.95 kB / 0.5619 GB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000649/0.7249, allocations: 72.08 kB / 0.5619 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.876e-05/0.725, allocations: 15.38 kB / 0.5619 GB, free: 5.43 MB / 378.7 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.0003146/0.7253, allocations: 163.5 kB / 0.5621 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.7254, allocations: 31.62 kB / 0.5621 GB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/0.7295, allocations: 1.944 MB / 0.564 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.052e-05/0.7296, allocations: 27.2 kB / 0.5641 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.7296, allocations: 0 / 0.5641 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.7296, allocations: 8.781 kB / 0.5641 GB, free: 3.934 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.7314, allocations: 1.009 MB / 0.565 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.649e-06/0.7315, allocations: 0.875 kB / 0.5651 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006572/0.7321, allocations: 86.31 kB / 0.5651 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.7322, allocations: 0 / 0.5651 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.7322, allocations: 10.94 kB / 0.5651 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.7322, allocations: 0 / 0.5651 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.7322, allocations: 0 / 0.5651 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.7349, allocations: 1.108 MB / 0.5662 GB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004409/0.7354, allocations: 218.7 kB / 0.5664 GB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.7355, allocations: 10.5 kB / 0.5664 GB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006106/0.7362, allocations: 42.75 kB / 0.5665 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.7364, allocations: 40.97 kB / 0.5665 GB, free: 2.008 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.902e-05/0.7364, allocations: 8 kB / 0.5665 GB, free: 2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006195/0.737, allocations: 321.2 kB / 0.5668 GB, free: 1.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7371, allocations: 0 / 0.5668 GB, free: 1.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005666/0.7427, allocations: 0.9945 MB / 0.5678 GB, free: 0.8125 MB / 378.7 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.01048/0.7533, allocations: 1.179 MB / 0.569 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002166/0.7555, allocations: 0.6159 MB / 0.5696 GB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/0.7555, allocations: 0 / 0.5696 GB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.7568, allocations: 0.5263 MB / 0.5701 GB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.759, allocations: 199.4 kB / 0.5703 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.7628, allocations: 1.908 MB / 0.5721 GB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007679/0.7636, allocations: 0.9758 MB / 0.5731 GB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.7639, allocations: 42.55 kB / 0.5731 GB, free: 12.16 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7639, allocations: 0 / 0.5731 GB, free: 12.16 MB / 394.7 MB Notification: Performance of Templates: time 0.06657/0.8305, allocations: 27.14 MB / 0.5996 GB, free: 1.277 MB / 410.7 MB 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