Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 110.4 kB / 17.78 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 187.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2166/0.2166, allocations: 44.19 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3614, allocations: 60.83 MB / 0.5189 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03028/0.3917, allocations: 28.12 MB / 0.5464 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.408, allocations: 13.29 MB / 0.5593 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004678/0.4085, allocations: 7.938 kB / 0.5594 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008006/0.4094, allocations: 250.4 kB / 0.5596 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.4208, allocations: 3.659 MB / 0.5632 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008235/0.429, allocations: 2.372 MB / 0.5655 GB, free: 12.41 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.4304, allocations: 0.8924 MB / 0.5664 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005144/0.4309, allocations: 252.7 kB / 0.5666 GB, free: 11.26 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.432, allocations: 454.1 kB / 0.567 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004478/0.4324, allocations: 262.9 kB / 0.5673 GB, free: 10.56 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.4325, allocations: 40 kB / 0.5673 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01668/0.4492, allocations: 7.219 MB / 0.5744 GB, free: 3.293 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002578/0.4495, allocations: 99.66 kB / 0.5745 GB, free: 3.195 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004758/0.45, allocations: 223 kB / 0.5747 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.462, allocations: 4.405 MB / 0.579 GB, free: 14.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.462, allocations: 0 / 0.579 GB, free: 14.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.462, allocations: 0 / 0.579 GB, free: 14.56 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4621, allocations: 0 / 0.579 GB, free: 14.56 MB / 446.1 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.003699/0.4658, allocations: 1.232 MB / 0.5802 GB, free: 13.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.4658, allocations: 12.03 kB / 0.5802 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001792/0.4676, allocations: 208.2 kB / 0.5804 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000712/0.4684, allocations: 379.3 kB / 0.5808 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.4684, allocations: 29.03 kB / 0.5808 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.151e-05/0.4685, allocations: 28.38 kB / 0.5808 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4701, allocations: 0.5744 MB / 0.5814 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.4702, allocations: 7.938 kB / 0.5814 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.4702, allocations: 19.98 kB / 0.5814 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.4703, allocations: 8 kB / 0.5814 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.4719, allocations: 0.5211 MB / 0.5819 GB, free: 11.43 MB / 446.1 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.003711/0.4756, allocations: 2.628 MB / 0.5845 GB, free: 8.562 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.4772, allocations: 458.2 kB / 0.5849 GB, free: 8.105 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004306/0.4776, allocations: 192.7 kB / 0.5851 GB, free: 7.914 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.049/0.5267, allocations: 24.31 MB / 0.6088 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.5267, allocations: 34.56 kB / 0.6089 GB, free: 12.67 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 4.088e-06/0.5267, allocations: 4 kB / 0.6089 GB, free: 12.67 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002901/0.5297, allocations: 0.7971 MB / 0.6096 GB, free: 11.86 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.5298, allocations: 110.8 kB / 0.6098 GB, free: 11.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.5302, allocations: 304.6 kB / 0.61 GB, free: 11.42 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.5302, allocations: 29.7 kB / 0.6101 GB, free: 11.39 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.5304, allocations: 208.1 kB / 0.6103 GB, free: 11.18 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.102e-05/0.5305, allocations: 86.84 kB / 0.6104 GB, free: 11.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.5306, allocations: 65.69 kB / 0.6104 GB, free: 11.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.5307, allocations: 346.8 kB / 0.6107 GB, free: 10.67 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.5311, allocations: 139.9 kB / 0.6109 GB, free: 10.54 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.5316, allocations: 231 kB / 0.6111 GB, free: 10.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007818/0.5324, allocations: 357.1 kB / 0.6114 GB, free: 9.887 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.5324, allocations: 7.938 kB / 0.6114 GB, free: 9.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009929/0.5334, allocations: 421.6 kB / 0.6119 GB, free: 9.461 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.5334, allocations: 11.98 kB / 0.6119 GB, free: 9.449 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.5334, allocations: 320 / 0.6119 GB, free: 9.449 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.5335, allocations: 15.94 kB / 0.6119 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.5338, allocations: 75.89 kB / 0.612 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.5339, allocations: 4 kB / 0.612 GB, free: 9.355 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.5342, allocations: 51.5 kB / 0.612 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.5342, allocations: 16 kB / 0.612 GB, free: 9.289 MB / 478.1 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 (Opening.y,SinkP1.medium.phase,SourceP1.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 (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001993/0.5344, allocations: 161.8 kB / 0.6122 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.708e-05/0.5345, allocations: 35.62 kB / 0.6122 GB, free: 9.086 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.5369, allocations: 1.885 MB / 0.614 GB, free: 7.188 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.352e-05/0.537, allocations: 39.88 kB / 0.6141 GB, free: 7.148 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.537, allocations: 0 / 0.6141 GB, free: 7.148 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.537, allocations: 0 / 0.6141 GB, free: 7.148 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.5381, allocations: 1.019 MB / 0.6151 GB, free: 6.078 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.5381, allocations: 0 / 0.6151 GB, free: 6.078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.5384, allocations: 75.88 kB / 0.6152 GB, free: 6.004 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.5384, allocations: 3.984 kB / 0.6152 GB, free: 6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.5385, allocations: 8 kB / 0.6152 GB, free: 5.992 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.077e-05/0.5385, allocations: 3.938 kB / 0.6152 GB, free: 5.988 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5385, allocations: 4 kB / 0.6152 GB, free: 5.984 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.54, allocations: 1.073 MB / 0.6162 GB, free: 4.895 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.5402, allocations: 167.8 kB / 0.6164 GB, free: 4.711 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.5403, allocations: 19.78 kB / 0.6164 GB, free: 4.691 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.5405, allocations: 27.91 kB / 0.6164 GB, free: 4.664 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.5406, allocations: 35.89 kB / 0.6165 GB, free: 4.629 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.5407, allocations: 16 kB / 0.6165 GB, free: 4.613 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003729/0.5411, allocations: 327.1 kB / 0.6168 GB, free: 4.293 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5411, allocations: 0 / 0.6168 GB, free: 4.293 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003021/0.5441, allocations: 0.9877 MB / 0.6178 GB, free: 3.305 MB / 478.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005128/0.5492, allocations: 1.178 MB / 0.6189 GB, free: 2.129 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.5506, allocations: 0.591 MB / 0.6195 GB, free: 1.535 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.5506, allocations: 4 kB / 0.6195 GB, free: 1.531 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007228/0.5514, allocations: 0.5126 MB / 0.62 GB, free: 1.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.5526, allocations: 211.6 kB / 0.6202 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.5549, allocations: 1.504 MB / 0.6217 GB, free: 15.28 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.5555, allocations: 0.9638 MB / 0.6226 GB, free: 14.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004977/0.556, allocations: 281.7 kB / 0.6229 GB, free: 14.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.5561, allocations: 39.42 kB / 0.6229 GB, free: 13.98 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5561, allocations: 0 / 0.6229 GB, free: 13.98 MB / 494.1 MB Notification: Performance of Templates: time 0.06401/0.6201, allocations: 39.57 MB / 0.6615 GB, free: 6.488 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches