Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00171/0.00171, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001549/0.001549, allocations: 210.7 kB / 23.72 MB, free: 4.391 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.455/1.455, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2363/0.2363, allocations: 46.96 MB / 360.9 MB, free: 4.047 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.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 71.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3651, allocations: 66.03 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03232/0.3974, allocations: 25.9 MB / 0.5859 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01669/0.4141, allocations: 11.77 MB / 0.5974 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.4144, allocations: 15.88 kB / 0.5974 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007306/0.4151, allocations: 234.5 kB / 0.5976 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00975/0.4249, allocations: 3.646 MB / 0.6012 GB, free: 10.54 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006658/0.4315, allocations: 2.355 MB / 0.6035 GB, free: 8.184 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.4329, allocations: 0.9002 MB / 0.6044 GB, free: 7.281 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.4333, allocations: 204.9 kB / 0.6046 GB, free: 7.074 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008121/0.4341, allocations: 450.2 kB / 0.605 GB, free: 6.633 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003716/0.4344, allocations: 262.9 kB / 0.6052 GB, free: 6.375 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.88e-05/0.4345, allocations: 39.94 kB / 0.6053 GB, free: 6.336 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01408/0.4486, allocations: 6.899 MB / 0.612 GB, free: 15.43 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.4488, allocations: 103.6 kB / 0.6121 GB, free: 15.33 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003072/0.4491, allocations: 191.2 kB / 0.6123 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.4593, allocations: 4.412 MB / 0.6166 GB, free: 10.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.929e-06/0.4594, allocations: 7.984 kB / 0.6166 GB, free: 10.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4594, allocations: 0 / 0.6166 GB, free: 10.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.4594, allocations: 0 / 0.6166 GB, free: 10.71 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.003216/0.4626, allocations: 1.18 MB / 0.6178 GB, free: 9.496 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.4626, allocations: 12.03 kB / 0.6178 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.591e-05/0.4627, allocations: 62.73 kB / 0.6178 GB, free: 9.414 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.4644, allocations: 220.4 kB / 0.618 GB, free: 9.199 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007059/0.4651, allocations: 313.2 kB / 0.6183 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.326e-05/0.4652, allocations: 25.03 kB / 0.6184 GB, free: 8.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.783e-05/0.4652, allocations: 36.12 kB / 0.6184 GB, free: 8.805 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.4669, allocations: 0.7291 MB / 0.6191 GB, free: 8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.4669, allocations: 7.938 kB / 0.6191 GB, free: 7.992 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.467, allocations: 12 kB / 0.6191 GB, free: 7.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.467, allocations: 12 kB / 0.6191 GB, free: 7.969 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.4686, allocations: 0.5215 MB / 0.6196 GB, free: 7.445 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.003101/0.4717, allocations: 1.914 MB / 0.6215 GB, free: 5.449 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.4734, allocations: 438.2 kB / 0.6219 GB, free: 5.012 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004533/0.4738, allocations: 176.7 kB / 0.6221 GB, free: 4.836 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04813/0.5219, allocations: 13.2 MB / 0.635 GB, free: 7.613 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.334e-05/0.522, allocations: 38.56 kB / 0.635 GB, free: 7.566 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.034e-06/0.522, allocations: 3.938 kB / 0.635 GB, free: 7.562 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002983/0.525, allocations: 0.7858 MB / 0.6358 GB, free: 6.77 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.5251, allocations: 110.8 kB / 0.6359 GB, free: 6.637 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.5255, allocations: 316.4 kB / 0.6362 GB, free: 6.324 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.5256, allocations: 29.7 kB / 0.6362 GB, free: 6.289 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.5257, allocations: 204.5 kB / 0.6364 GB, free: 6.086 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.894e-05/0.5258, allocations: 95.2 kB / 0.6365 GB, free: 5.992 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.526, allocations: 73.69 kB / 0.6366 GB, free: 5.914 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.5261, allocations: 342.8 kB / 0.6369 GB, free: 5.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/0.5265, allocations: 135.9 kB / 0.6371 GB, free: 5.438 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005407/0.5271, allocations: 283.3 kB / 0.6373 GB, free: 5.109 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008577/0.5279, allocations: 361.9 kB / 0.6377 GB, free: 4.723 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5279, allocations: 0 / 0.6377 GB, free: 4.723 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001056/0.529, allocations: 421 kB / 0.6381 GB, free: 4.305 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.529, allocations: 8 kB / 0.6381 GB, free: 4.297 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.529, allocations: 0 / 0.6381 GB, free: 4.297 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/0.5291, allocations: 7.938 kB / 0.6381 GB, free: 4.289 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.5294, allocations: 92.19 kB / 0.6382 GB, free: 4.199 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.5294, allocations: 4 kB / 0.6382 GB, free: 4.195 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.5297, allocations: 47.7 kB / 0.6382 GB, free: 4.148 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.5298, allocations: 19.98 kB / 0.6382 GB, free: 4.129 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.000277/0.5301, allocations: 165.6 kB / 0.6384 GB, free: 3.957 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.5302, allocations: 35.81 kB / 0.6384 GB, free: 3.922 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.5332, allocations: 1.983 MB / 0.6404 GB, free: 1.926 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-05/0.5332, allocations: 31.94 kB / 0.6404 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.5332, allocations: 4 kB / 0.6404 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.5333, allocations: 0 / 0.6404 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.5345, allocations: 0.9603 MB / 0.6413 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.5345, allocations: 8 kB / 0.6413 GB, free: 0.875 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.5348, allocations: 67.88 kB / 0.6414 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.5348, allocations: 4 kB / 0.6414 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.5349, allocations: 15.92 kB / 0.6414 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.5349, allocations: 0 / 0.6414 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.5349, allocations: 7.984 kB / 0.6414 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.5365, allocations: 1.104 MB / 0.6425 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.5367, allocations: 99.09 kB / 0.6426 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.866e-05/0.5368, allocations: 19.83 kB / 0.6426 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.537, allocations: 27.97 kB / 0.6427 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5371, allocations: 35.88 kB / 0.6427 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.5372, allocations: 12 kB / 0.6427 GB, free: 15.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004076/0.5376, allocations: 327.1 kB / 0.643 GB, free: 15.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5376, allocations: 0 / 0.643 GB, free: 15.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002964/0.5405, allocations: 1.01 MB / 0.644 GB, free: 14.14 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.00693/0.5475, allocations: 2.732 MB / 0.6467 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.5489, allocations: 0.5905 MB / 0.6472 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5489, allocations: 4.625 kB / 0.6473 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007258/0.5496, allocations: 425 kB / 0.6477 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.5509, allocations: 203.6 kB / 0.6479 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009149/0.5601, allocations: 5.006 MB / 0.6527 GB, free: 5.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.5605, allocations: 374.2 kB / 0.6531 GB, free: 4.625 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005706/0.5611, allocations: 274.8 kB / 0.6534 GB, free: 4.359 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003701/0.5614, allocations: 255.3 kB / 0.6536 GB, free: 4.109 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5614, allocations: 0 / 0.6536 GB, free: 4.109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.663, allocations: 47.85 MB / 0.7003 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/14.09, allocations: 11.78 kB / 0.7003 GB, free: 4.52 MB / 0.5294 GB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 17.608806600794196]