Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 199.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 226.6 MB / 243.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008852/0.0008853, allocations: 92.33 kB / 295.5 MB, free: 6.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3234/0.3234, allocations: 44.82 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002647, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.309, allocations: 62.95 MB / 0.5159 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.01913/0.3282, allocations: 26.3 MB / 0.5416 GB, free: 18.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.3389, allocations: 12.4 MB / 0.5537 GB, free: 9.539 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003476/0.3393, allocations: 12.75 kB / 0.5537 GB, free: 9.531 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000594/0.3399, allocations: 193.3 kB / 0.5539 GB, free: 9.43 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00785/0.3478, allocations: 2.865 MB / 0.5567 GB, free: 8.188 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005264/0.3531, allocations: 1.85 MB / 0.5585 GB, free: 7.234 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.3543, allocations: 0.9982 MB / 0.5594 GB, free: 6.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.3547, allocations: 215.7 kB / 0.5597 GB, free: 6.727 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00067/0.3554, allocations: 386.6 kB / 0.56 GB, free: 6.574 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.3557, allocations: 260.2 kB / 0.5603 GB, free: 6.473 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.3558, allocations: 14.84 kB / 0.5603 GB, free: 6.473 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01309/0.3689, allocations: 6.891 MB / 0.567 GB, free: 3.164 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.3691, allocations: 84.25 kB / 0.5671 GB, free: 3.102 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003169/0.3694, allocations: 219.9 kB / 0.5673 GB, free: 2.965 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00528/0.3747, allocations: 2.987 MB / 0.5702 GB, free: 1.219 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3747, allocations: 0 / 0.5702 GB, free: 1.219 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3747, allocations: 1.156 kB / 0.5702 GB, free: 1.219 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.3747, allocations: 0 / 0.5702 GB, free: 1.219 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.003503/0.3782, allocations: 1.182 MB / 0.5714 GB, free: 364 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3783, allocations: 9.375 kB / 0.5714 GB, free: 364 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.3798, allocations: 225.9 kB / 0.5716 GB, free: 272 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004357/0.3803, allocations: 359.2 kB / 0.5719 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.3803, allocations: 29.03 kB / 0.572 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.3804, allocations: 28.38 kB / 0.572 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.3819, allocations: 0.6095 MB / 0.5726 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.3819, allocations: 15.92 kB / 0.5726 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/0.382, allocations: 16 kB / 0.5726 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.382, allocations: 8 kB / 0.5726 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.3836, allocations: 0.5874 MB / 0.5732 GB, free: 14.55 MB / 394.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.002887/0.3865, allocations: 2.633 MB / 0.5758 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.388, allocations: 0.5059 MB / 0.5763 GB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004907/0.3885, allocations: 216.7 kB / 0.5765 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04516/0.4337, allocations: 26.99 MB / 0.6028 GB, free: 12.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.4337, allocations: 34.56 kB / 0.6029 GB, free: 12.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 1.984e-06/0.4338, allocations: 4 kB / 0.6029 GB, free: 12.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002833/0.4366, allocations: 0.8877 MB / 0.6037 GB, free: 11.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.4367, allocations: 114.8 kB / 0.6038 GB, free: 11.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.4371, allocations: 308.4 kB / 0.6041 GB, free: 11.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.057e-05/0.4371, allocations: 29.7 kB / 0.6042 GB, free: 11.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.4373, allocations: 208.2 kB / 0.6044 GB, free: 10.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.599e-05/0.4373, allocations: 86.75 kB / 0.6044 GB, free: 10.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.899e-05/0.4374, allocations: 8 kB / 0.6045 GB, free: 10.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.4375, allocations: 342.8 kB / 0.6048 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004355/0.4379, allocations: 163.9 kB / 0.6049 GB, free: 10.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/0.4384, allocations: 258.9 kB / 0.6052 GB, free: 10.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008699/0.4393, allocations: 423.2 kB / 0.6056 GB, free: 9.594 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4393, allocations: 0 / 0.6056 GB, free: 9.594 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001051/0.4404, allocations: 480.8 kB / 0.606 GB, free: 9.117 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4404, allocations: 4 kB / 0.6061 GB, free: 9.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4404, allocations: 11.92 kB / 0.6061 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4405, allocations: 11.88 kB / 0.6061 GB, free: 9.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.4408, allocations: 100.2 kB / 0.6062 GB, free: 8.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.4408, allocations: 4 kB / 0.6062 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.4412, allocations: 63.7 kB / 0.6062 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.4413, allocations: 16 kB / 0.6063 GB, free: 8.91 MB / 426.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.0001774/0.4414, allocations: 161.7 kB / 0.6064 GB, free: 8.742 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.317e-05/0.4415, allocations: 35.53 kB / 0.6064 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.444, allocations: 1.964 MB / 0.6084 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-05/0.444, allocations: 35.89 kB / 0.6084 GB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.444, allocations: 0 / 0.6084 GB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.444, allocations: 3.984 kB / 0.6084 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.4451, allocations: 1.011 MB / 0.6094 GB, free: 5.637 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.4451, allocations: 4 kB / 0.6094 GB, free: 5.633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/0.4454, allocations: 95.86 kB / 0.6095 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.4455, allocations: 4 kB / 0.6095 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.4455, allocations: 4 kB / 0.6095 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.4455, allocations: 11.88 kB / 0.6095 GB, free: 5.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4455, allocations: 0 / 0.6095 GB, free: 5.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.447, allocations: 1.131 MB / 0.6106 GB, free: 4.371 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.4473, allocations: 219.6 kB / 0.6108 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.4473, allocations: 8 kB / 0.6108 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.4477, allocations: 47.84 kB / 0.6109 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.4478, allocations: 39.94 kB / 0.6109 GB, free: 4.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.4478, allocations: 15.94 kB / 0.6109 GB, free: 4.027 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003392/0.4481, allocations: 323.1 kB / 0.6112 GB, free: 3.711 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4482, allocations: 0 / 0.6112 GB, free: 3.711 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003448/0.4516, allocations: 1.003 MB / 0.6122 GB, free: 2.707 MB / 426.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.005957/0.4576, allocations: 1.18 MB / 0.6134 GB, free: 1.523 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.4589, allocations: 0.647 MB / 0.614 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4589, allocations: 0 / 0.614 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007076/0.4596, allocations: 0.5362 MB / 0.6145 GB, free: 352 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.4607, allocations: 203.9 kB / 0.6147 GB, free: 152 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.463, allocations: 1.912 MB / 0.6166 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.4635, allocations: 0.968 MB / 0.6175 GB, free: 13.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.4636, allocations: 39.42 kB / 0.6176 GB, free: 13.16 MB / 442.7 MB Notification: Performance of SimCode: time 6.02e-07/0.4636, allocations: 0 / 0.6176 GB, free: 13.16 MB / 442.7 MB Notification: Performance of Templates: time 0.03765/0.5013, allocations: 24.09 MB / 0.6411 GB, free: 5.074 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches