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.001123/0.001123, allocations: 122.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2194/0.2194, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 71.89 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3518, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02999/0.3818, allocations: 28.28 MB / 0.5586 GB, free: 5.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01685/0.3987, allocations: 13.3 MB / 0.5716 GB, free: 8.043 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005327/0.3993, allocations: 15.94 kB / 0.5716 GB, free: 8.027 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000907/0.4002, allocations: 246.4 kB / 0.5718 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01226/0.4125, allocations: 3.675 MB / 0.5754 GB, free: 4.113 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008125/0.4207, allocations: 2.363 MB / 0.5777 GB, free: 1.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.4221, allocations: 0.9041 MB / 0.5786 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005542/0.4226, allocations: 268.5 kB / 0.5789 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.4237, allocations: 450.2 kB / 0.5793 GB, free: 140 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006052/0.4244, allocations: 270.9 kB / 0.5796 GB, free: 15.87 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.156e-05/0.4245, allocations: 35.94 kB / 0.5796 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01457/0.439, allocations: 7.231 MB / 0.5867 GB, free: 8.598 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.4393, allocations: 99.66 kB / 0.5868 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003418/0.4396, allocations: 227 kB / 0.587 GB, free: 8.277 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.4509, allocations: 4.413 MB / 0.5913 GB, free: 3.855 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.4509, allocations: 0 / 0.5913 GB, free: 3.855 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4509, allocations: 4 kB / 0.5913 GB, free: 3.852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.451, allocations: 0 / 0.5913 GB, free: 3.852 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.003379/0.4544, allocations: 1.243 MB / 0.5925 GB, free: 2.559 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.4544, allocations: 8.031 kB / 0.5925 GB, free: 2.551 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.4563, allocations: 220.2 kB / 0.5927 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006336/0.4569, allocations: 371.2 kB / 0.5931 GB, free: 1.934 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.457, allocations: 29.03 kB / 0.5931 GB, free: 1.906 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.007e-05/0.457, allocations: 36.31 kB / 0.5931 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.4586, allocations: 0.5939 MB / 0.5937 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.4587, allocations: 4 kB / 0.5937 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.4587, allocations: 15.94 kB / 0.5937 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.4587, allocations: 8 kB / 0.5937 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.4605, allocations: 0.5406 MB / 0.5943 GB, free: 0.668 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.003074/0.4635, allocations: 2.629 MB / 0.5968 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.4651, allocations: 466.1 kB / 0.5973 GB, free: 13.33 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004723/0.4656, allocations: 200.7 kB / 0.5975 GB, free: 13.13 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04817/0.5138, allocations: 26.88 MB / 0.6237 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.5139, allocations: 38.56 kB / 0.6238 GB, free: 14.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.5139, allocations: 0 / 0.6238 GB, free: 14.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002805/0.5167, allocations: 0.8207 MB / 0.6246 GB, free: 13.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.5168, allocations: 106.8 kB / 0.6247 GB, free: 13.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.5171, allocations: 308.5 kB / 0.625 GB, free: 13.53 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.5171, allocations: 29.7 kB / 0.625 GB, free: 13.49 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.5173, allocations: 212.2 kB / 0.6252 GB, free: 13.28 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/0.5173, allocations: 86.75 kB / 0.6253 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.5174, allocations: 65.69 kB / 0.6253 GB, free: 13.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5176, allocations: 338.8 kB / 0.6257 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.518, allocations: 155.8 kB / 0.6258 GB, free: 12.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.5184, allocations: 251.3 kB / 0.626 GB, free: 12.35 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.5193, allocations: 382 kB / 0.6264 GB, free: 11.94 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5193, allocations: 0 / 0.6264 GB, free: 11.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001027/0.5203, allocations: 444.7 kB / 0.6268 GB, free: 11.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.5203, allocations: 7.984 kB / 0.6268 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.5203, allocations: 4.312 kB / 0.6268 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.5204, allocations: 11.94 kB / 0.6269 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003592/0.5207, allocations: 83.88 kB / 0.6269 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.5208, allocations: 7.984 kB / 0.6269 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.521, allocations: 51.72 kB / 0.627 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.5211, allocations: 11.98 kB / 0.627 GB, free: 11.32 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.0001696/0.5213, allocations: 161.7 kB / 0.6272 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-05/0.5213, allocations: 39.53 kB / 0.6272 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.5237, allocations: 1.916 MB / 0.6291 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-05/0.5238, allocations: 31.89 kB / 0.6291 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5238, allocations: 0 / 0.6291 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5238, allocations: 0 / 0.6291 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009511/0.5248, allocations: 1.019 MB / 0.6301 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.5248, allocations: 4 kB / 0.6301 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.5251, allocations: 75.88 kB / 0.6302 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.5252, allocations: 0 / 0.6302 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.5252, allocations: 11.98 kB / 0.6302 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.5252, allocations: 3.938 kB / 0.6302 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5252, allocations: 0 / 0.6302 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.5267, allocations: 1.096 MB / 0.6313 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.5268, allocations: 175.8 kB / 0.6314 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.5269, allocations: 19.75 kB / 0.6314 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.5272, allocations: 35.91 kB / 0.6315 GB, free: 6.633 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5273, allocations: 39.89 kB / 0.6315 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.5273, allocations: 8 kB / 0.6315 GB, free: 6.586 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.5277, allocations: 327.1 kB / 0.6318 GB, free: 6.266 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5277, allocations: 0 / 0.6318 GB, free: 6.266 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002655/0.5304, allocations: 0.9994 MB / 0.6328 GB, free: 5.266 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.004063/0.5344, allocations: 1.169 MB / 0.6339 GB, free: 4.094 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.5357, allocations: 0.6144 MB / 0.6345 GB, free: 3.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5358, allocations: 0 / 0.6345 GB, free: 3.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007609/0.5365, allocations: 0.5167 MB / 0.6351 GB, free: 2.965 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.5377, allocations: 214.4 kB / 0.6353 GB, free: 2.762 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.5397, allocations: 1.508 MB / 0.6367 GB, free: 1.223 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.5402, allocations: 0.9638 MB / 0.6377 GB, free: 240 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004422/0.5406, allocations: 274.9 kB / 0.6379 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.5407, allocations: 43.42 kB / 0.638 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of SimCode: time 3.5e-07/0.5407, allocations: 7.938 kB / 0.638 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of Templates: time 0.04934/0.5901, allocations: 39.64 MB / 0.6767 GB, free: 8.316 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches