Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.001369/0.001369, allocations: 115.8 kB / 20.44 MB, free: 1.324 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.001604/0.001604, allocations: 210 kB / 23.74 MB, free: 4.543 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2177/0.2177, allocations: 44.92 MB / 358.8 MB, free: 6.281 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [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.002045/0.002045, allocations: 71.89 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3161, allocations: 65.46 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03687/0.3529, allocations: 28.66 MB / 0.585 GB, free: 11.03 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.018/0.3709, allocations: 13.38 MB / 0.5981 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000372/0.3713, allocations: 11.88 kB / 0.5981 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008149/0.3721, allocations: 258.4 kB / 0.5983 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009306/0.3814, allocations: 3.678 MB / 0.6019 GB, free: 9.656 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006348/0.3878, allocations: 2.394 MB / 0.6043 GB, free: 7.266 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.3891, allocations: 0.9041 MB / 0.6051 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000442/0.3896, allocations: 208.9 kB / 0.6053 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009638/0.3905, allocations: 462.2 kB / 0.6058 GB, free: 5.695 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004965/0.391, allocations: 274.9 kB / 0.606 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.797e-05/0.3911, allocations: 36 kB / 0.6061 GB, free: 5.391 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01488/0.406, allocations: 7.258 MB / 0.6132 GB, free: 14.12 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.4062, allocations: 107.6 kB / 0.6133 GB, free: 14.02 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000434/0.4066, allocations: 227 kB / 0.6135 GB, free: 13.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.4172, allocations: 4.435 MB / 0.6178 GB, free: 9.348 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4172, allocations: 0 / 0.6178 GB, free: 9.348 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4172, allocations: 0 / 0.6178 GB, free: 9.348 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.4172, allocations: 0 / 0.6178 GB, free: 9.348 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.003632/0.4208, allocations: 1.186 MB / 0.619 GB, free: 8.129 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.4209, allocations: 12.03 kB / 0.619 GB, free: 8.117 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.421, allocations: 70.72 kB / 0.6191 GB, free: 8.039 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.4228, allocations: 204.5 kB / 0.6193 GB, free: 7.84 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006677/0.4234, allocations: 321.2 kB / 0.6196 GB, free: 7.496 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.4235, allocations: 32.95 kB / 0.6196 GB, free: 7.465 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.4235, allocations: 36.12 kB / 0.6196 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.4251, allocations: 0.5707 MB / 0.6202 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.4252, allocations: 4 kB / 0.6202 GB, free: 6.816 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.457e-05/0.4252, allocations: 16 kB / 0.6202 GB, free: 6.801 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.4252, allocations: 12 kB / 0.6202 GB, free: 6.789 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.4269, allocations: 0.5215 MB / 0.6207 GB, free: 6.266 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.003554/0.4305, allocations: 2.531 MB / 0.6232 GB, free: 3.523 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.432, allocations: 450 kB / 0.6236 GB, free: 3.074 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.4325, allocations: 180.7 kB / 0.6238 GB, free: 2.895 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04576/0.4782, allocations: 13.14 MB / 0.6366 GB, free: 5.734 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/0.4783, allocations: 38.56 kB / 0.6367 GB, free: 5.688 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.854e-06/0.4783, allocations: 0 / 0.6367 GB, free: 5.688 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002908/0.4812, allocations: 0.7858 MB / 0.6374 GB, free: 4.895 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.4813, allocations: 110.8 kB / 0.6375 GB, free: 4.762 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.4817, allocations: 312.5 kB / 0.6378 GB, free: 4.453 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.4817, allocations: 29.7 kB / 0.6379 GB, free: 4.418 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.4819, allocations: 220.4 kB / 0.6381 GB, free: 4.199 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.907e-05/0.482, allocations: 83.27 kB / 0.6382 GB, free: 4.117 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.4821, allocations: 65.69 kB / 0.6382 GB, free: 4.047 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002599/0.4824, allocations: 342.8 kB / 0.6385 GB, free: 3.703 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003908/0.4828, allocations: 139.9 kB / 0.6387 GB, free: 3.566 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005801/0.4834, allocations: 227.9 kB / 0.6389 GB, free: 3.305 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008069/0.4842, allocations: 361.9 kB / 0.6392 GB, free: 2.918 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4842, allocations: 4 kB / 0.6392 GB, free: 2.914 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001106/0.4853, allocations: 429.1 kB / 0.6397 GB, free: 2.488 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.4853, allocations: 4 kB / 0.6397 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.4853, allocations: 4 kB / 0.6397 GB, free: 2.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.4853, allocations: 7.938 kB / 0.6397 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.4857, allocations: 75.89 kB / 0.6397 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.4857, allocations: 11.92 kB / 0.6398 GB, free: 2.387 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.486, allocations: 43.92 kB / 0.6398 GB, free: 2.344 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.486, allocations: 23.98 kB / 0.6398 GB, free: 2.32 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: 5 (Opening.y,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.000218/0.4862, allocations: 153.8 kB / 0.64 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.976e-05/0.4863, allocations: 35.77 kB / 0.64 GB, free: 2.125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002926/0.4893, allocations: 1.98 MB / 0.6419 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.934e-05/0.4893, allocations: 31.95 kB / 0.642 GB, free: 104 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4893, allocations: 0 / 0.642 GB, free: 104 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.4893, allocations: 7.922 kB / 0.642 GB, free: 96 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.4906, allocations: 1.019 MB / 0.643 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.4906, allocations: 0 / 0.643 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.4909, allocations: 71.88 kB / 0.643 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.4909, allocations: 0 / 0.643 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.4909, allocations: 11.94 kB / 0.643 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.4909, allocations: 0 / 0.643 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4909, allocations: 3.938 kB / 0.643 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.4928, allocations: 1.116 MB / 0.6441 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.4929, allocations: 87.16 kB / 0.6442 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.493, allocations: 27.77 kB / 0.6442 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.4933, allocations: 27.97 kB / 0.6443 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.84e-05/0.4934, allocations: 35.94 kB / 0.6443 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.4934, allocations: 8 kB / 0.6443 GB, free: 13.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004286/0.4938, allocations: 331.1 kB / 0.6446 GB, free: 13.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4938, allocations: 0 / 0.6446 GB, free: 13.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002949/0.4968, allocations: 1.006 MB / 0.6456 GB, free: 12.29 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: 19 ($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,Opening.y) * 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.007415/0.5042, allocations: 2.737 MB / 0.6483 GB, free: 9.527 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.5056, allocations: 0.5911 MB / 0.6489 GB, free: 8.938 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.5056, allocations: 0 / 0.6489 GB, free: 8.938 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.5064, allocations: 413.1 kB / 0.6493 GB, free: 8.531 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.5076, allocations: 213.6 kB / 0.6495 GB, free: 8.328 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009327/0.517, allocations: 5.015 MB / 0.6544 GB, free: 3.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.5175, allocations: 0.9599 MB / 0.6553 GB, free: 2.172 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005258/0.5181, allocations: 274.4 kB / 0.6556 GB, free: 1.91 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004689/0.5185, allocations: 259.3 kB / 0.6558 GB, free: 1.656 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5185, allocations: 0 / 0.6558 GB, free: 1.656 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1081/0.6266, allocations: 47.61 MB / 0.7023 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.16, allocations: 15.73 kB / 0.7023 GB, free: 2.203 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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: 18.648573325946927]