Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001188/0.001187, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 75.88 kB / 481.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3527, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03141/0.3841, allocations: 28.27 MB / 0.5586 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.4002, allocations: 13.29 MB / 0.5716 GB, free: 8.051 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005804/0.4008, allocations: 15.88 kB / 0.5716 GB, free: 8.035 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008494/0.4017, allocations: 246.4 kB / 0.5718 GB, free: 7.793 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.413, allocations: 3.668 MB / 0.5754 GB, free: 4.125 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00776/0.4208, allocations: 2.363 MB / 0.5777 GB, free: 1.766 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.4222, allocations: 0.8885 MB / 0.5786 GB, free: 0.875 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004881/0.4227, allocations: 268.5 kB / 0.5788 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008762/0.4235, allocations: 438.3 kB / 0.5792 GB, free: 184 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003757/0.4239, allocations: 270.8 kB / 0.5795 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.424, allocations: 35.94 kB / 0.5795 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0159/0.4399, allocations: 7.231 MB / 0.5866 GB, free: 8.641 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.4402, allocations: 99.73 kB / 0.5867 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003488/0.4406, allocations: 227 kB / 0.5869 GB, free: 8.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.4521, allocations: 4.417 MB / 0.5912 GB, free: 3.895 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4521, allocations: 0 / 0.5912 GB, free: 3.895 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4521, allocations: 0 / 0.5912 GB, free: 3.895 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.4521, allocations: 0 / 0.5912 GB, free: 3.895 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.003301/0.4554, allocations: 1.232 MB / 0.5924 GB, free: 2.613 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4555, allocations: 16.03 kB / 0.5924 GB, free: 2.598 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001814/0.4573, allocations: 208.2 kB / 0.5926 GB, free: 2.395 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000652/0.458, allocations: 375.3 kB / 0.593 GB, free: 1.988 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.458, allocations: 28.97 kB / 0.593 GB, free: 1.961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.4581, allocations: 28.38 kB / 0.5931 GB, free: 1.934 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.4597, allocations: 0.5783 MB / 0.5936 GB, free: 1.312 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4597, allocations: 0 / 0.5936 GB, free: 1.312 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.628e-05/0.4597, allocations: 23.97 kB / 0.5936 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.4597, allocations: 8 kB / 0.5936 GB, free: 1.281 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.4613, allocations: 0.5289 MB / 0.5942 GB, free: 0.7539 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.003119/0.4645, allocations: 2.613 MB / 0.5967 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00167/0.4661, allocations: 458.1 kB / 0.5972 GB, free: 13.44 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.4666, allocations: 200.7 kB / 0.5973 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05304/0.5197, allocations: 26.88 MB / 0.6236 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.5197, allocations: 34.56 kB / 0.6236 GB, free: 14.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 3.577e-06/0.5198, allocations: 3.984 kB / 0.6236 GB, free: 14.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002899/0.5227, allocations: 0.7895 MB / 0.6244 GB, free: 14.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.5227, allocations: 110.8 kB / 0.6245 GB, free: 13.97 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003409/0.5231, allocations: 308.5 kB / 0.6248 GB, free: 13.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.5231, allocations: 29.7 kB / 0.6248 GB, free: 13.63 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.5233, allocations: 208.2 kB / 0.625 GB, free: 13.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.945e-05/0.5233, allocations: 86.83 kB / 0.6251 GB, free: 13.33 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.5235, allocations: 69.69 kB / 0.6252 GB, free: 13.26 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.5236, allocations: 342.8 kB / 0.6255 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.524, allocations: 139.9 kB / 0.6256 GB, free: 12.78 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004481/0.5245, allocations: 231.8 kB / 0.6259 GB, free: 12.51 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007911/0.5253, allocations: 361.9 kB / 0.6262 GB, free: 12.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.5253, allocations: 0 / 0.6262 GB, free: 12.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009554/0.5263, allocations: 429 kB / 0.6266 GB, free: 11.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.5263, allocations: 12 kB / 0.6266 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.5263, allocations: 0 / 0.6266 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.5263, allocations: 7.938 kB / 0.6266 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.5267, allocations: 87.88 kB / 0.6267 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.5267, allocations: 4 kB / 0.6267 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.527, allocations: 43.66 kB / 0.6268 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.126e-05/0.527, allocations: 16 kB / 0.6268 GB, free: 11.53 MB / 494.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.0001744/0.5272, allocations: 165.7 kB / 0.6269 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.482e-05/0.5273, allocations: 31.62 kB / 0.627 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.5296, allocations: 1.893 MB / 0.6288 GB, free: 9.422 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.024e-05/0.5296, allocations: 39.81 kB / 0.6289 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5296, allocations: 0 / 0.6289 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5297, allocations: 0 / 0.6289 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009686/0.5306, allocations: 1.015 MB / 0.6298 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5306, allocations: 0 / 0.6298 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000302/0.531, allocations: 75.88 kB / 0.6299 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.531, allocations: 4 kB / 0.6299 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.531, allocations: 11.98 kB / 0.6299 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.531, allocations: 3.938 kB / 0.6299 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.531, allocations: 0 / 0.6299 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.5324, allocations: 1.077 MB / 0.631 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.5326, allocations: 163.8 kB / 0.6311 GB, free: 6.949 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/0.5326, allocations: 23.78 kB / 0.6312 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002592/0.5329, allocations: 31.91 kB / 0.6312 GB, free: 6.895 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.91e-05/0.533, allocations: 35.95 kB / 0.6312 GB, free: 6.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.533, allocations: 12 kB / 0.6312 GB, free: 6.848 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003556/0.5334, allocations: 323.1 kB / 0.6316 GB, free: 6.531 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5334, allocations: 0 / 0.6316 GB, free: 6.531 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002634/0.536, allocations: 0.9954 MB / 0.6325 GB, free: 5.535 MB / 494.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.003661/0.5397, allocations: 1.171 MB / 0.6337 GB, free: 4.363 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.5409, allocations: 0.5943 MB / 0.6342 GB, free: 3.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.5409, allocations: 0 / 0.6342 GB, free: 3.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006765/0.5416, allocations: 0.5145 MB / 0.6348 GB, free: 3.258 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.5428, allocations: 228 kB / 0.635 GB, free: 3.047 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.5448, allocations: 1.488 MB / 0.6364 GB, free: 1.527 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004906/0.5453, allocations: 0.9716 MB / 0.6374 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004158/0.5457, allocations: 274.8 kB / 0.6376 GB, free: 264 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.978e-05/0.5458, allocations: 39.44 kB / 0.6377 GB, free: 224 kB / 494.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5458, allocations: 0 / 0.6377 GB, free: 224 kB / 494.1 MB Notification: Performance of Templates: time 0.05078/0.5966, allocations: 39.48 MB / 0.6762 GB, free: 8.785 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches