Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001852/0.001852, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002326/0.002326, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.501/1.501, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2307/0.2307, allocations: 46.91 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 59.91 kB / 0.4909 GB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.125, allocations: 66 MB / 0.5554 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0326/0.1576, allocations: 28.44 MB / 0.5832 GB, free: 9.297 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.271/0.4285, allocations: 13.33 MB / 0.5962 GB, free: 3.766 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000377/0.4289, allocations: 15.16 kB / 0.5962 GB, free: 3.766 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007574/0.4297, allocations: 253.1 kB / 0.5964 GB, free: 3.766 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.4402, allocations: 3.68 MB / 0.6 GB, free: 3.742 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007524/0.4478, allocations: 2.376 MB / 0.6023 GB, free: 3.684 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001686/0.4495, allocations: 0.8997 MB / 0.6032 GB, free: 3.684 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004594/0.4499, allocations: 220.5 kB / 0.6034 GB, free: 3.672 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.4511, allocations: 458.1 kB / 0.6039 GB, free: 3.668 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005292/0.4516, allocations: 281.5 kB / 0.6041 GB, free: 3.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.185e-05/0.4517, allocations: 33.59 kB / 0.6042 GB, free: 3.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01533/0.467, allocations: 7.257 MB / 0.6112 GB, free: 3.594 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.4672, allocations: 98.3 kB / 0.6113 GB, free: 3.578 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003975/0.4676, allocations: 229 kB / 0.6116 GB, free: 3.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.4803, allocations: 4.429 MB / 0.6159 GB, free: 2.406 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4803, allocations: 0.9375 kB / 0.6159 GB, free: 2.406 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4803, allocations: 0 / 0.6159 GB, free: 2.406 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.4803, allocations: 0 / 0.6159 GB, free: 2.406 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.0042/0.4845, allocations: 1.281 MB / 0.6171 GB, free: 1.543 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4845, allocations: 10.03 kB / 0.6171 GB, free: 1.543 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.279e-05/0.4846, allocations: 66.66 kB / 0.6172 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/0.4865, allocations: 216.3 kB / 0.6174 GB, free: 1.418 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.4871, allocations: 386.5 kB / 0.6178 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.4871, allocations: 23.72 kB / 0.6178 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.4872, allocations: 31.81 kB / 0.6178 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.4887, allocations: 0.5928 MB / 0.6184 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.4887, allocations: 5.25 kB / 0.6184 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.035e-05/0.4887, allocations: 11.22 kB / 0.6184 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.4888, allocations: 8.406 kB / 0.6184 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.4904, allocations: 0.5422 MB / 0.619 GB, free: 0.6836 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.003093/0.4935, allocations: 2.635 MB / 0.6215 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.4952, allocations: 443.9 kB / 0.622 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005022/0.4957, allocations: 192.1 kB / 0.6221 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05677/0.5525, allocations: 26.88 MB / 0.6484 GB, free: 5.738 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.614e-05/0.5525, allocations: 39.89 kB / 0.6484 GB, free: 5.691 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.675e-06/0.5525, allocations: 0 / 0.6484 GB, free: 5.691 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00337/0.5559, allocations: 0.8176 MB / 0.6492 GB, free: 4.867 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/0.556, allocations: 110.8 kB / 0.6493 GB, free: 4.734 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004874/0.5565, allocations: 312.5 kB / 0.6496 GB, free: 4.426 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.5565, allocations: 33.7 kB / 0.6497 GB, free: 4.387 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002106/0.5567, allocations: 212.5 kB / 0.6499 GB, free: 4.176 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.5568, allocations: 86.31 kB / 0.65 GB, free: 4.094 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.557, allocations: 73.64 kB / 0.65 GB, free: 4.016 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.5572, allocations: 338.8 kB / 0.6503 GB, free: 3.676 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000509/0.5577, allocations: 157.2 kB / 0.6505 GB, free: 3.527 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005702/0.5582, allocations: 250.7 kB / 0.6507 GB, free: 3.242 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.5593, allocations: 381.2 kB / 0.6511 GB, free: 2.836 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.5593, allocations: 0 / 0.6511 GB, free: 2.836 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001213/0.5605, allocations: 437 kB / 0.6515 GB, free: 2.402 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.5605, allocations: 8 kB / 0.6515 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.5605, allocations: 7.984 kB / 0.6515 GB, free: 2.387 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.268e-05/0.5606, allocations: 7.938 kB / 0.6515 GB, free: 2.379 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.561, allocations: 88.19 kB / 0.6516 GB, free: 2.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.561, allocations: 4 kB / 0.6516 GB, free: 2.289 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003636/0.5613, allocations: 55.23 kB / 0.6517 GB, free: 2.238 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.5614, allocations: 15.98 kB / 0.6517 GB, free: 2.223 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.0002145/0.5616, allocations: 161.7 kB / 0.6519 GB, free: 2.055 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.5617, allocations: 35.81 kB / 0.6519 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/0.5645, allocations: 1.919 MB / 0.6538 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-05/0.5646, allocations: 31.89 kB / 0.6538 GB, free: 68 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5646, allocations: 0 / 0.6538 GB, free: 68 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5646, allocations: 0 / 0.6538 GB, free: 68 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.5658, allocations: 1.026 MB / 0.6548 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.5658, allocations: 0 / 0.6548 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.5662, allocations: 75.88 kB / 0.6549 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.5662, allocations: 4 kB / 0.6549 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.5662, allocations: 7.984 kB / 0.6549 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.5662, allocations: 7.938 kB / 0.6549 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5662, allocations: 0 / 0.6549 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.568, allocations: 1.1 MB / 0.656 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.5682, allocations: 172.3 kB / 0.6561 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.32e-05/0.5683, allocations: 19.83 kB / 0.6561 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.5686, allocations: 35.91 kB / 0.6562 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.5687, allocations: 41.02 kB / 0.6562 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.5688, allocations: 8 kB / 0.6562 GB, free: 13.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000419/0.5692, allocations: 327.1 kB / 0.6565 GB, free: 13.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5692, allocations: 0 / 0.6565 GB, free: 13.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003667/0.5729, allocations: 1.014 MB / 0.6575 GB, free: 12.16 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.00867/0.5815, allocations: 2.731 MB / 0.6602 GB, free: 9.504 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.583, allocations: 0.5904 MB / 0.6608 GB, free: 8.914 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.583, allocations: 0 / 0.6608 GB, free: 8.914 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000737/0.5837, allocations: 417.6 kB / 0.6612 GB, free: 8.508 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.585, allocations: 218.2 kB / 0.6614 GB, free: 8.293 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00993/0.5949, allocations: 5.04 MB / 0.6663 GB, free: 3.117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000652/0.5956, allocations: 0.9638 MB / 0.6672 GB, free: 2.125 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005323/0.5961, allocations: 279.5 kB / 0.6675 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.5965, allocations: 259.3 kB / 0.6678 GB, free: 1.602 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5965, allocations: 0 / 0.6678 GB, free: 1.602 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09878/0.6953, allocations: 46.84 MB / 0.7135 GB, free: 2.918 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/12.17, allocations: 11.92 kB / 0.7135 GB, free: 2.906 MB / 0.5294 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 15.813428280176595]