Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008464/0.0008464, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007149/0.0007149, allocations: 87.91 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2846/0.2846, allocations: 43.57 MB / 363.1 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 16 kB / 432 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09594, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.1835/0.2795, allocations: 26.24 MB / 0.5049 GB, free: 31.79 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.2901, allocations: 12.39 MB / 0.517 GB, free: 23.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003584/0.2905, allocations: 12.94 kB / 0.5171 GB, free: 23.03 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005843/0.2911, allocations: 200.5 kB / 0.5172 GB, free: 22.92 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006754/0.2978, allocations: 2.856 MB / 0.52 GB, free: 21.68 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004611/0.3025, allocations: 1.847 MB / 0.5218 GB, free: 20.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008867/0.3034, allocations: 0.9887 MB / 0.5228 GB, free: 20.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.3036, allocations: 207.6 kB / 0.523 GB, free: 20.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005234/0.3042, allocations: 391.6 kB / 0.5234 GB, free: 20.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.3044, allocations: 260.3 kB / 0.5236 GB, free: 19.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.3045, allocations: 16 kB / 0.5236 GB, free: 19.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01028/0.3147, allocations: 6.876 MB / 0.5304 GB, free: 18.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.3149, allocations: 82.7 kB / 0.5304 GB, free: 18.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.3151, allocations: 218.6 kB / 0.5306 GB, free: 18.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004389/0.3195, allocations: 2.974 MB / 0.5335 GB, free: 17.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3196, allocations: 10.59 kB / 0.5336 GB, free: 17.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3196, allocations: 3.938 kB / 0.5336 GB, free: 17.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.3196, allocations: 0 / 0.5336 GB, free: 17.65 MB / 378.7 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.003132/0.3227, allocations: 1.177 MB / 0.5347 GB, free: 16.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3228, allocations: 9.375 kB / 0.5347 GB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/0.3243, allocations: 213.9 kB / 0.5349 GB, free: 16.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.3246, allocations: 365.7 kB / 0.5353 GB, free: 16.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.3247, allocations: 25.12 kB / 0.5353 GB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.3247, allocations: 32.91 kB / 0.5353 GB, free: 16.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.3261, allocations: 0.6147 MB / 0.5359 GB, free: 16.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3261, allocations: 0.75 kB / 0.5359 GB, free: 16.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.724e-05/0.3262, allocations: 17.88 kB / 0.5359 GB, free: 16.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3262, allocations: 5.938 kB / 0.536 GB, free: 16.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3277, allocations: 0.5918 MB / 0.5365 GB, free: 16.13 MB / 378.7 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.00239/0.3301, allocations: 2.648 MB / 0.5391 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.3316, allocations: 0.496 MB / 0.5396 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004508/0.3321, allocations: 221.5 kB / 0.5398 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04141/0.3735, allocations: 24.41 MB / 0.5637 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.3736, allocations: 45.77 kB / 0.5637 GB, free: 10.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.3736, allocations: 0 / 0.5637 GB, free: 10.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002803/0.3764, allocations: 0.8885 MB / 0.5646 GB, free: 10.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.3765, allocations: 113.8 kB / 0.5647 GB, free: 10.35 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.3768, allocations: 304 kB / 0.565 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.3769, allocations: 31.86 kB / 0.565 GB, free: 10.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.377, allocations: 208.8 kB / 0.5652 GB, free: 9.926 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.429e-05/0.3771, allocations: 83.28 kB / 0.5653 GB, free: 9.852 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/0.3771, allocations: 7.25 kB / 0.5653 GB, free: 9.848 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3772, allocations: 340.3 kB / 0.5656 GB, free: 9.512 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000407/0.3776, allocations: 170.6 kB / 0.5658 GB, free: 9.438 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/0.3781, allocations: 267.6 kB / 0.566 GB, free: 9.238 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008545/0.379, allocations: 418.8 kB / 0.5664 GB, free: 8.984 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.379, allocations: 2.719 kB / 0.5664 GB, free: 8.984 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001017/0.38, allocations: 482.1 kB / 0.5669 GB, free: 8.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.38, allocations: 6.469 kB / 0.5669 GB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3801, allocations: 6.984 kB / 0.5669 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3801, allocations: 7.719 kB / 0.5669 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.3804, allocations: 99.84 kB / 0.567 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3805, allocations: 6.188 kB / 0.567 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.3808, allocations: 65.61 kB / 0.5671 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.3808, allocations: 15.5 kB / 0.5671 GB, free: 8.676 MB / 394.7 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 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002085/0.381, allocations: 162.5 kB / 0.5672 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.3811, allocations: 32.19 kB / 0.5673 GB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002424/0.3835, allocations: 1.971 MB / 0.5692 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/0.3836, allocations: 31.89 kB / 0.5692 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3836, allocations: 4 kB / 0.5692 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3836, allocations: 3.984 kB / 0.5692 GB, free: 6.832 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000959/0.3846, allocations: 1.011 MB / 0.5702 GB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3846, allocations: 0 / 0.5702 GB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.3849, allocations: 95.86 kB / 0.5703 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.3849, allocations: 4 kB / 0.5703 GB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.385, allocations: 8 kB / 0.5703 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.385, allocations: 3.938 kB / 0.5703 GB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.385, allocations: 0 / 0.5703 GB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.3864, allocations: 1.124 MB / 0.5714 GB, free: 4.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.3866, allocations: 223.4 kB / 0.5716 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.368e-05/0.3866, allocations: 11.94 kB / 0.5716 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.387, allocations: 47.91 kB / 0.5717 GB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.904e-05/0.3871, allocations: 35.94 kB / 0.5717 GB, free: 4.188 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.3871, allocations: 12 kB / 0.5717 GB, free: 4.176 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003222/0.3874, allocations: 327.1 kB / 0.572 GB, free: 3.855 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3874, allocations: 4 kB / 0.5721 GB, free: 3.852 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003273/0.3907, allocations: 0.9877 MB / 0.573 GB, free: 2.863 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004364/0.3951, allocations: 1.174 MB / 0.5742 GB, free: 1.684 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3963, allocations: 0.6537 MB / 0.5748 GB, free: 1.031 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3963, allocations: 0 / 0.5748 GB, free: 1.031 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006928/0.397, allocations: 0.5373 MB / 0.5753 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.3981, allocations: 202.7 kB / 0.5755 GB, free: 312 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.4004, allocations: 1.913 MB / 0.5774 GB, free: 14.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.4009, allocations: 0.9641 MB / 0.5783 GB, free: 13.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.401, allocations: 47.44 kB / 0.5784 GB, free: 13.32 MB / 410.7 MB Notification: Performance of SimCode: time 4.81e-07/0.401, allocations: 0 / 0.5784 GB, free: 13.32 MB / 410.7 MB Notification: Performance of Templates: time 0.03233/0.4333, allocations: 23.96 MB / 0.6018 GB, free: 5.355 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches