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.001331/0.001331, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001413/0.001413, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.418/1.418, 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.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.2336/0.2336, allocations: 46.93 MB / 360.9 MB, free: 4.266 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.002009/0.002009, allocations: 75.89 kB / 0.4962 GB, free: 7.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, allocations: 66.05 MB / 0.5607 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03495/0.3647, allocations: 28.65 MB / 0.5886 GB, free: 7.676 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01836/0.383, allocations: 13.39 MB / 0.6017 GB, free: 10.24 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004502/0.3835, allocations: 19.81 kB / 0.6017 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.3845, allocations: 254.4 kB / 0.602 GB, free: 9.969 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.3953, allocations: 3.67 MB / 0.6056 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006325/0.4017, allocations: 2.401 MB / 0.6079 GB, free: 3.902 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.403, allocations: 0.908 MB / 0.6088 GB, free: 2.992 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004182/0.4034, allocations: 224.8 kB / 0.609 GB, free: 2.766 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008438/0.4043, allocations: 454.2 kB / 0.6094 GB, free: 2.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004193/0.4047, allocations: 286.8 kB / 0.6097 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.748e-05/0.4047, allocations: 32 kB / 0.6098 GB, free: 2.008 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01494/0.4197, allocations: 7.258 MB / 0.6168 GB, free: 10.74 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.4199, allocations: 103.7 kB / 0.6169 GB, free: 10.64 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003962/0.4203, allocations: 223 kB / 0.6172 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.4313, allocations: 4.435 MB / 0.6215 GB, free: 5.973 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.365e-06/0.4313, allocations: 4 kB / 0.6215 GB, free: 5.969 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4313, allocations: 0 / 0.6215 GB, free: 5.969 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.4313, allocations: 4 kB / 0.6215 GB, free: 5.965 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.003266/0.4346, allocations: 1.207 MB / 0.6227 GB, free: 4.723 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4346, allocations: 15.97 kB / 0.6227 GB, free: 4.707 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.506e-05/0.4347, allocations: 62.72 kB / 0.6227 GB, free: 4.637 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001665/0.4364, allocations: 216.5 kB / 0.6229 GB, free: 4.426 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.437, allocations: 313.2 kB / 0.6232 GB, free: 4.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.437, allocations: 33.03 kB / 0.6233 GB, free: 4.059 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.4371, allocations: 28.12 kB / 0.6233 GB, free: 4.031 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.4387, allocations: 0.5863 MB / 0.6239 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4387, allocations: 0 / 0.6239 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.4388, allocations: 16 kB / 0.6239 GB, free: 3.391 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.4388, allocations: 11.94 kB / 0.6239 GB, free: 3.379 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.4405, allocations: 0.5488 MB / 0.6244 GB, free: 2.828 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.003417/0.4439, allocations: 2.527 MB / 0.6269 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.4455, allocations: 450.1 kB / 0.6273 GB, free: 15.64 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004857/0.446, allocations: 188.7 kB / 0.6275 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04607/0.4921, allocations: 13.15 MB / 0.6404 GB, free: 2.285 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.026e-05/0.4922, allocations: 38.56 kB / 0.6404 GB, free: 2.238 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 3.036e-06/0.4922, allocations: 0 / 0.6404 GB, free: 2.238 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003176/0.4953, allocations: 0.817 MB / 0.6412 GB, free: 1.414 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.4954, allocations: 110.8 kB / 0.6413 GB, free: 1.281 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00044/0.4959, allocations: 316.4 kB / 0.6416 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.546e-05/0.4959, allocations: 29.7 kB / 0.6416 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.4961, allocations: 204.5 kB / 0.6418 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.4962, allocations: 95.2 kB / 0.6419 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.4964, allocations: 69.69 kB / 0.642 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.4965, allocations: 334.8 kB / 0.6423 GB, free: 232 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005072/0.497, allocations: 155.9 kB / 0.6424 GB, free: 76 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000643/0.4977, allocations: 243.8 kB / 0.6427 GB, free: 15.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.4988, allocations: 374 kB / 0.643 GB, free: 15.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4988, allocations: 0 / 0.643 GB, free: 15.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001119/0.4999, allocations: 452.8 kB / 0.6435 GB, free: 14.95 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4999, allocations: 4 kB / 0.6435 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4999, allocations: 4 kB / 0.6435 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.4999, allocations: 8.25 kB / 0.6435 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.5003, allocations: 87.88 kB / 0.6436 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.5003, allocations: 7.938 kB / 0.6436 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.5006, allocations: 51.81 kB / 0.6436 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.5006, allocations: 15.98 kB / 0.6436 GB, free: 14.77 MB / 494.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.0002146/0.5008, allocations: 161.7 kB / 0.6438 GB, free: 14.61 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.397e-05/0.5009, allocations: 43.77 kB / 0.6438 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002784/0.5037, allocations: 1.988 MB / 0.6458 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-05/0.5038, allocations: 31.94 kB / 0.6458 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.5038, allocations: 0 / 0.6458 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.5038, allocations: 3.984 kB / 0.6458 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.505, allocations: 1.019 MB / 0.6468 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/0.505, allocations: 4 kB / 0.6468 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.5054, allocations: 79.88 kB / 0.6469 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.5054, allocations: 4 kB / 0.6469 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.5054, allocations: 11.92 kB / 0.6469 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.5054, allocations: 4 kB / 0.6469 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5054, allocations: 0 / 0.6469 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.5071, allocations: 1.124 MB / 0.648 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.5073, allocations: 91.16 kB / 0.6481 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.5073, allocations: 31.72 kB / 0.6481 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002778/0.5076, allocations: 27.97 kB / 0.6481 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5077, allocations: 35.94 kB / 0.6482 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.5078, allocations: 15.92 kB / 0.6482 GB, free: 10.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003975/0.5082, allocations: 327.1 kB / 0.6485 GB, free: 9.699 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5082, allocations: 0 / 0.6485 GB, free: 9.699 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002809/0.511, allocations: 1.014 MB / 0.6495 GB, free: 8.684 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.007408/0.5184, allocations: 2.741 MB / 0.6522 GB, free: 5.914 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.5199, allocations: 0.6103 MB / 0.6528 GB, free: 5.305 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5199, allocations: 0 / 0.6528 GB, free: 5.305 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007109/0.5206, allocations: 437.5 kB / 0.6532 GB, free: 4.875 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.5217, allocations: 213.3 kB / 0.6534 GB, free: 4.676 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008921/0.5307, allocations: 5.072 MB / 0.6583 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.5313, allocations: 0.9677 MB / 0.6593 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000505/0.5318, allocations: 274.8 kB / 0.6596 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.5321, allocations: 263.3 kB / 0.6598 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.5321, allocations: 0 / 0.6598 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09828/0.6304, allocations: 47.78 MB / 0.7065 GB, free: 14.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.04/14.67, allocations: 4.062 kB / 0.7065 GB, free: 14.32 MB / 0.545 GB " [Timeout remaining time 645] (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: 18.18795154686086]