Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001316, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 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.2209/0.2209, allocations: 46.1 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0026/0.002601, allocations: 75.88 kB / 482 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4093, allocations: 62.44 MB / 0.5317 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02984/0.4392, allocations: 28.28 MB / 0.5593 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01514/0.4544, allocations: 13.3 MB / 0.5723 GB, free: 7.984 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004212/0.4548, allocations: 7.938 kB / 0.5723 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007928/0.4557, allocations: 250.4 kB / 0.5725 GB, free: 7.73 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009921/0.4656, allocations: 3.672 MB / 0.5761 GB, free: 4.059 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006498/0.4721, allocations: 2.374 MB / 0.5784 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.4733, allocations: 0.9002 MB / 0.5793 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.4737, allocations: 264.5 kB / 0.5795 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007269/0.4745, allocations: 454.2 kB / 0.58 GB, free: 80 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/0.4748, allocations: 266.9 kB / 0.5802 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.033e-05/0.4749, allocations: 36 kB / 0.5803 GB, free: 15.78 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01366/0.4885, allocations: 7.231 MB / 0.5873 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.4888, allocations: 103.6 kB / 0.5874 GB, free: 8.441 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003456/0.4891, allocations: 223 kB / 0.5876 GB, free: 8.223 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.5001, allocations: 4.409 MB / 0.5919 GB, free: 3.805 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.5002, allocations: 0 / 0.5919 GB, free: 3.805 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5002, allocations: 0 / 0.5919 GB, free: 3.805 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.5002, allocations: 0 / 0.5919 GB, free: 3.805 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.003263/0.5035, allocations: 1.255 MB / 0.5932 GB, free: 2.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.5035, allocations: 8.031 kB / 0.5932 GB, free: 2.492 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001712/0.5052, allocations: 212.2 kB / 0.5934 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.5058, allocations: 383.2 kB / 0.5937 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.5059, allocations: 29.03 kB / 0.5938 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/0.5059, allocations: 24.38 kB / 0.5938 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.5075, allocations: 0.6017 MB / 0.5944 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.5075, allocations: 0 / 0.5944 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.5075, allocations: 12 kB / 0.5944 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.5075, allocations: 8 kB / 0.5944 GB, free: 1.156 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.5092, allocations: 0.5484 MB / 0.5949 GB, free: 0.6094 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.002974/0.5121, allocations: 2.625 MB / 0.5975 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.5137, allocations: 474.1 kB / 0.598 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004579/0.5142, allocations: 200.7 kB / 0.5981 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04662/0.5608, allocations: 26.88 MB / 0.6244 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.5609, allocations: 34.56 kB / 0.6244 GB, free: 14.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.5609, allocations: 0 / 0.6244 GB, free: 14.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002828/0.5637, allocations: 0.8207 MB / 0.6252 GB, free: 13.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.5638, allocations: 106.8 kB / 0.6253 GB, free: 13.78 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/0.5641, allocations: 312.5 kB / 0.6256 GB, free: 13.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.5642, allocations: 37.7 kB / 0.6257 GB, free: 13.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.5643, allocations: 200.2 kB / 0.6259 GB, free: 13.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.117e-05/0.5644, allocations: 86.75 kB / 0.6259 GB, free: 13.13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.5645, allocations: 65.69 kB / 0.626 GB, free: 13.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5647, allocations: 342.8 kB / 0.6263 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.5651, allocations: 147.9 kB / 0.6265 GB, free: 12.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004535/0.5655, allocations: 251.7 kB / 0.6267 GB, free: 12.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007855/0.5663, allocations: 381.9 kB / 0.6271 GB, free: 11.88 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.5663, allocations: 0 / 0.6271 GB, free: 11.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009946/0.5673, allocations: 448.7 kB / 0.6275 GB, free: 11.44 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.5674, allocations: 8 kB / 0.6275 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5674, allocations: 0 / 0.6275 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.5674, allocations: 7.938 kB / 0.6275 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003422/0.5677, allocations: 88.19 kB / 0.6276 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.5678, allocations: 8 kB / 0.6276 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.5681, allocations: 43.72 kB / 0.6277 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.5681, allocations: 19.98 kB / 0.6277 GB, free: 11.27 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: 4 (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.0001812/0.5683, allocations: 157.7 kB / 0.6278 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.5684, allocations: 35.53 kB / 0.6279 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002299/0.5707, allocations: 1.916 MB / 0.6297 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/0.5707, allocations: 31.89 kB / 0.6298 GB, free: 9.105 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.5707, allocations: 8 kB / 0.6298 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.5707, allocations: 3.984 kB / 0.6298 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009439/0.5717, allocations: 1.012 MB / 0.6308 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.5717, allocations: 0 / 0.6308 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.572, allocations: 75.88 kB / 0.6308 GB, free: 7.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.5721, allocations: 7.984 kB / 0.6308 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.5721, allocations: 8 kB / 0.6308 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5721, allocations: 7.938 kB / 0.6309 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5721, allocations: 0 / 0.6309 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.5735, allocations: 1.096 MB / 0.6319 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.5737, allocations: 159.9 kB / 0.6321 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.5737, allocations: 27.75 kB / 0.6321 GB, free: 6.617 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.574, allocations: 35.84 kB / 0.6321 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.5741, allocations: 27.95 kB / 0.6322 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.5741, allocations: 19.98 kB / 0.6322 GB, free: 6.535 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000339/0.5745, allocations: 331.1 kB / 0.6325 GB, free: 6.211 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5745, allocations: 0 / 0.6325 GB, free: 6.211 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002683/0.5772, allocations: 0.9994 MB / 0.6335 GB, free: 5.211 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: 18 ($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) * 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.004203/0.5814, allocations: 1.169 MB / 0.6346 GB, free: 4.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.5827, allocations: 0.6138 MB / 0.6352 GB, free: 3.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5828, allocations: 0 / 0.6352 GB, free: 3.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006774/0.5834, allocations: 0.525 MB / 0.6357 GB, free: 2.902 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.5846, allocations: 217.4 kB / 0.6359 GB, free: 2.695 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.5866, allocations: 1.537 MB / 0.6374 GB, free: 1.121 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.5871, allocations: 0.9599 MB / 0.6384 GB, free: 140 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.5872, allocations: 47.42 kB / 0.6384 GB, free: 92 kB / 494.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5873, allocations: 0 / 0.6384 GB, free: 92 kB / 494.1 MB Notification: Performance of Templates: time 0.03469/0.622, allocations: 24.12 MB / 0.662 GB, free: 7.98 MB / 0.5137 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches