Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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 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 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 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.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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 106.8 kB / 16.41 MB, free: 6.484 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.001305/0.001305, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2109/0.2109, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 67.89 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1192, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03449/0.1537, allocations: 28.14 MB / 0.5154 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.1708, allocations: 13.31 MB / 0.5284 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004837/0.1713, allocations: 11.94 kB / 0.5284 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009128/0.1722, allocations: 246.4 kB / 0.5286 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2789/0.4512, allocations: 3.642 MB / 0.5322 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006421/0.4576, allocations: 2.363 MB / 0.5345 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.4589, allocations: 0.8935 MB / 0.5353 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.4593, allocations: 250.9 kB / 0.5356 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009541/0.4603, allocations: 442.5 kB / 0.536 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005039/0.4608, allocations: 270.2 kB / 0.5363 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.457e-05/0.4609, allocations: 33.53 kB / 0.5363 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01675/0.4776, allocations: 7.225 MB / 0.5433 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.4779, allocations: 106.2 kB / 0.5434 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004895/0.4784, allocations: 218.9 kB / 0.5437 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01305/0.4915, allocations: 4.421 MB / 0.548 GB, free: 4.652 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4915, allocations: 1.438 kB / 0.548 GB, free: 4.652 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4915, allocations: 6.906 kB / 0.548 GB, free: 4.648 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.4915, allocations: 0 / 0.548 GB, free: 4.648 MB / 414.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.004664/0.4962, allocations: 1.272 MB / 0.5492 GB, free: 3.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.4963, allocations: 13.2 kB / 0.5492 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00168/0.4979, allocations: 221 kB / 0.5494 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.4984, allocations: 373.9 kB / 0.5498 GB, free: 3.621 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.4984, allocations: 30.06 kB / 0.5498 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.4985, allocations: 31.5 kB / 0.5499 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.5, allocations: 0.5922 MB / 0.5504 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.5, allocations: 1.062 kB / 0.5504 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.5001, allocations: 15.03 kB / 0.5505 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.5001, allocations: 7.812 kB / 0.5505 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.5017, allocations: 0.5444 MB / 0.551 GB, free: 3.48 MB / 414.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.002438/0.5041, allocations: 2.629 MB / 0.5536 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.5057, allocations: 472.5 kB / 0.554 GB, free: 1.348 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.5061, allocations: 201.7 kB / 0.5542 GB, free: 1.301 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04774/0.5539, allocations: 24.3 MB / 0.5779 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.554, allocations: 37.81 kB / 0.578 GB, free: 14.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 1.954e-06/0.554, allocations: 2.719 kB / 0.578 GB, free: 14.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003001/0.557, allocations: 0.814 MB / 0.5788 GB, free: 13.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.5571, allocations: 118.2 kB / 0.5789 GB, free: 13.51 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.5574, allocations: 308.8 kB / 0.5792 GB, free: 13.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.5575, allocations: 33.2 kB / 0.5792 GB, free: 13.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.5576, allocations: 210.8 kB / 0.5794 GB, free: 13.06 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.434e-05/0.5577, allocations: 81.67 kB / 0.5795 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.5578, allocations: 64.56 kB / 0.5795 GB, free: 12.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5579, allocations: 345.5 kB / 0.5799 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.5583, allocations: 152.6 kB / 0.58 GB, free: 12.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.5589, allocations: 247.6 kB / 0.5803 GB, free: 12.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008595/0.5597, allocations: 378.7 kB / 0.5806 GB, free: 11.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.5597, allocations: 0 / 0.5806 GB, free: 11.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001035/0.5608, allocations: 449.2 kB / 0.581 GB, free: 11.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.5608, allocations: 4 kB / 0.581 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.5608, allocations: 4 kB / 0.5811 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.5608, allocations: 4 kB / 0.5811 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.5612, allocations: 102.6 kB / 0.5812 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.5612, allocations: 4 kB / 0.5812 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/0.5616, allocations: 51.19 kB / 0.5812 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.5616, allocations: 14.31 kB / 0.5812 GB, free: 11.46 MB / 446.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.0001898/0.5618, allocations: 159.2 kB / 0.5814 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.198e-05/0.5619, allocations: 39.77 kB / 0.5814 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.5643, allocations: 1.924 MB / 0.5833 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/0.5644, allocations: 35.88 kB / 0.5833 GB, free: 9.641 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.5644, allocations: 0 / 0.5833 GB, free: 9.641 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.5644, allocations: 1.359 kB / 0.5833 GB, free: 9.641 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.5654, allocations: 1.014 MB / 0.5843 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5654, allocations: 0 / 0.5843 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.5658, allocations: 83.48 kB / 0.5844 GB, free: 8.512 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.5658, allocations: 0 / 0.5844 GB, free: 8.512 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.5658, allocations: 8 kB / 0.5844 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.5658, allocations: 3.938 kB / 0.5844 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5658, allocations: 0 / 0.5844 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.5674, allocations: 1.108 MB / 0.5855 GB, free: 7.379 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.5675, allocations: 172.1 kB / 0.5856 GB, free: 7.195 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.959e-05/0.5676, allocations: 27.83 kB / 0.5857 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.5679, allocations: 27.91 kB / 0.5857 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.21e-05/0.568, allocations: 31.95 kB / 0.5857 GB, free: 7.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.568, allocations: 16 kB / 0.5857 GB, free: 7.094 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000361/0.5684, allocations: 327.1 kB / 0.5861 GB, free: 6.777 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5684, allocations: 0 / 0.5861 GB, free: 6.777 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004011/0.5724, allocations: 1.006 MB / 0.587 GB, free: 5.77 MB / 446.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.005908/0.5783, allocations: 1.177 MB / 0.5882 GB, free: 4.699 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.5797, allocations: 0.612 MB / 0.5888 GB, free: 4.098 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5797, allocations: 0 / 0.5888 GB, free: 4.098 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007144/0.5804, allocations: 0.5252 MB / 0.5893 GB, free: 3.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.5816, allocations: 224.5 kB / 0.5895 GB, free: 3.375 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.5837, allocations: 1.533 MB / 0.591 GB, free: 1.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.5843, allocations: 0.9599 MB / 0.592 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004523/0.5847, allocations: 278 kB / 0.5922 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.5848, allocations: 39.44 kB / 0.5923 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5848, allocations: 0 / 0.5923 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of Templates: time 0.05203/0.6369, allocations: 39.57 MB / 0.6309 GB, free: 9.016 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches