Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002402/0.002402, allocations: 213.2 kB / 24.48 MB, free: 3.844 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2356/0.2356, allocations: 44.94 MB / 359.6 MB, free: 6.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 71.89 kB / 0.4943 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3492, allocations: 65.47 MB / 0.5582 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03387/0.3831, allocations: 25.92 MB / 0.5835 GB, free: 13.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02004/0.4031, allocations: 11.77 MB / 0.595 GB, free: 1.641 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004986/0.4036, allocations: 15.88 kB / 0.595 GB, free: 1.625 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.4047, allocations: 230.5 kB / 0.5952 GB, free: 1.398 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01392/0.4186, allocations: 3.65 MB / 0.5988 GB, free: 13.75 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008901/0.4275, allocations: 2.355 MB / 0.6011 GB, free: 11.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.4293, allocations: 0.9119 MB / 0.602 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005061/0.4298, allocations: 208.9 kB / 0.6022 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.4309, allocations: 450.2 kB / 0.6026 GB, free: 9.832 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005487/0.4314, allocations: 266.9 kB / 0.6029 GB, free: 9.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.793e-05/0.4315, allocations: 35.94 kB / 0.6029 GB, free: 9.535 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02058/0.4521, allocations: 6.895 MB / 0.6096 GB, free: 2.633 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.4524, allocations: 111.5 kB / 0.6097 GB, free: 2.523 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003718/0.4528, allocations: 187.2 kB / 0.6099 GB, free: 2.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.4637, allocations: 4.416 MB / 0.6142 GB, free: 13.91 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.4637, allocations: 4 kB / 0.6142 GB, free: 13.91 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4637, allocations: 3.938 kB / 0.6142 GB, free: 13.9 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.4637, allocations: 0 / 0.6142 GB, free: 13.9 MB / 462.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.003563/0.4673, allocations: 1.199 MB / 0.6154 GB, free: 12.67 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4674, allocations: 12.03 kB / 0.6154 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001724/0.4691, allocations: 208.5 kB / 0.6156 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007144/0.4698, allocations: 317.3 kB / 0.6159 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.159e-05/0.4698, allocations: 21.03 kB / 0.6159 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.4699, allocations: 32.38 kB / 0.616 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.4716, allocations: 0.7485 MB / 0.6167 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.4716, allocations: 0 / 0.6167 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.112e-05/0.4717, allocations: 12 kB / 0.6167 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.4717, allocations: 8 kB / 0.6167 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.4734, allocations: 0.541 MB / 0.6173 GB, free: 10.68 MB / 462.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.003048/0.4764, allocations: 1.864 MB / 0.6191 GB, free: 8.742 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.4781, allocations: 442.2 kB / 0.6195 GB, free: 8.301 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/0.4785, allocations: 192.7 kB / 0.6197 GB, free: 8.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04719/0.5257, allocations: 13.21 MB / 0.6326 GB, free: 10.88 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.5258, allocations: 38.56 kB / 0.6326 GB, free: 10.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.5258, allocations: 0 / 0.6326 GB, free: 10.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003027/0.5288, allocations: 0.8132 MB / 0.6334 GB, free: 10.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.022e-05/0.5289, allocations: 110.8 kB / 0.6335 GB, free: 9.883 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.5292, allocations: 272.5 kB / 0.6338 GB, free: 9.613 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.5293, allocations: 29.7 kB / 0.6338 GB, free: 9.578 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.5295, allocations: 228.2 kB / 0.634 GB, free: 9.352 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.724e-05/0.5296, allocations: 87.19 kB / 0.6341 GB, free: 9.266 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.5297, allocations: 69.69 kB / 0.6342 GB, free: 9.191 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.5299, allocations: 338.8 kB / 0.6345 GB, free: 8.852 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004382/0.5303, allocations: 151.9 kB / 0.6346 GB, free: 8.703 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005667/0.5309, allocations: 287.3 kB / 0.6349 GB, free: 8.371 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009196/0.5318, allocations: 385.9 kB / 0.6353 GB, free: 7.961 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.5318, allocations: 0 / 0.6353 GB, free: 7.961 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00112/0.5329, allocations: 440.9 kB / 0.6357 GB, free: 7.523 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.5329, allocations: 8 kB / 0.6357 GB, free: 7.516 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.5329, allocations: 0 / 0.6357 GB, free: 7.516 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.533, allocations: 4 kB / 0.6357 GB, free: 7.512 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.5333, allocations: 92.17 kB / 0.6358 GB, free: 7.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.5333, allocations: 15.88 kB / 0.6358 GB, free: 7.406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.5336, allocations: 47.81 kB / 0.6359 GB, free: 7.359 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.5337, allocations: 12 kB / 0.6359 GB, free: 7.348 MB / 478.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.0002335/0.5339, allocations: 161.7 kB / 0.636 GB, free: 7.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.709e-05/0.534, allocations: 35.81 kB / 0.6361 GB, free: 7.145 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/0.5368, allocations: 1.998 MB / 0.638 GB, free: 5.137 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.89e-05/0.5368, allocations: 35.88 kB / 0.638 GB, free: 5.102 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.5369, allocations: 3.938 kB / 0.638 GB, free: 5.098 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.5369, allocations: 0 / 0.638 GB, free: 5.098 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.5379, allocations: 0.8711 MB / 0.6389 GB, free: 4.188 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.5379, allocations: 0 / 0.6389 GB, free: 4.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.5383, allocations: 67.94 kB / 0.639 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.5383, allocations: 0 / 0.639 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.5383, allocations: 19.98 kB / 0.639 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.5383, allocations: 0 / 0.639 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5383, allocations: 0 / 0.639 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.5401, allocations: 1.132 MB / 0.6401 GB, free: 2.953 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.5402, allocations: 91.09 kB / 0.6402 GB, free: 2.863 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/0.5403, allocations: 35.75 kB / 0.6402 GB, free: 2.828 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.5406, allocations: 23.97 kB / 0.6402 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.5407, allocations: 39.88 kB / 0.6403 GB, free: 2.766 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.5407, allocations: 12 kB / 0.6403 GB, free: 2.754 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003686/0.5411, allocations: 307.1 kB / 0.6406 GB, free: 2.457 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5411, allocations: 0 / 0.6406 GB, free: 2.457 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002846/0.5439, allocations: 1.006 MB / 0.6416 GB, free: 1.449 MB / 478.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.004511/0.5484, allocations: 1.172 MB / 0.6427 GB, free: 272 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.5499, allocations: 0.6066 MB / 0.6433 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5499, allocations: 4.625 kB / 0.6433 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007599/0.5507, allocations: 432.8 kB / 0.6437 GB, free: 15.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.5518, allocations: 199.8 kB / 0.6439 GB, free: 15.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.5543, allocations: 1.583 MB / 0.6454 GB, free: 13.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.5547, allocations: 374.1 kB / 0.6458 GB, free: 13.03 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.5548, allocations: 43.42 kB / 0.6458 GB, free: 12.98 MB / 494.1 MB Notification: Performance of SimCode: time 1.292e-06/0.5549, allocations: 0 / 0.6458 GB, free: 12.98 MB / 494.1 MB Notification: Performance of Templates: time 0.04326/0.5981, allocations: 24.19 MB / 0.6695 GB, free: 4.805 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.901688834186643]