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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001948/0.001948, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.2212/0.2212, allocations: 44.92 MB / 349.6 MB, free: 1.734 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 64.11 kB / 491.8 MB, free: 30.15 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1134, allocations: 64.26 MB / 0.543 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03334/0.1467, allocations: 28.29 MB / 0.5706 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01743/0.1642, allocations: 13.35 MB / 0.5837 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003758/0.1646, allocations: 7.938 kB / 0.5837 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007693/0.1653, allocations: 250.4 kB / 0.5839 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.1755, allocations: 3.67 MB / 0.5875 GB, free: 6.422 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006525/0.182, allocations: 2.372 MB / 0.5898 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.1835, allocations: 0.8924 MB / 0.5907 GB, free: 3.156 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004084/0.1839, allocations: 220.7 kB / 0.5909 GB, free: 2.938 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008323/0.1847, allocations: 454.2 kB / 0.5913 GB, free: 2.492 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.1851, allocations: 278.9 kB / 0.5916 GB, free: 2.219 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.024e-05/0.1851, allocations: 35.98 kB / 0.5916 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0142/0.1993, allocations: 7.239 MB / 0.5987 GB, free: 10.94 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001936/0.1995, allocations: 103.7 kB / 0.5988 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003186/0.1998, allocations: 219 kB / 0.599 GB, free: 10.62 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009812/0.2097, allocations: 4.416 MB / 0.6033 GB, free: 6.195 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2097, allocations: 4 kB / 0.6033 GB, free: 6.191 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2097, allocations: 0 / 0.6033 GB, free: 6.191 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.2097, allocations: 0 / 0.6033 GB, free: 6.191 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.003268/0.2129, allocations: 1.263 MB / 0.6045 GB, free: 4.875 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.213, allocations: 8.031 kB / 0.6046 GB, free: 4.867 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.94e-05/0.2131, allocations: 70.72 kB / 0.6046 GB, free: 4.789 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001776/0.2149, allocations: 212.5 kB / 0.6048 GB, free: 4.582 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006578/0.2155, allocations: 383.4 kB / 0.6052 GB, free: 4.164 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.175e-05/0.2156, allocations: 29.03 kB / 0.6052 GB, free: 4.137 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.995e-05/0.2156, allocations: 28.12 kB / 0.6052 GB, free: 4.109 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.2172, allocations: 0.5745 MB / 0.6058 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2172, allocations: 15.92 kB / 0.6058 GB, free: 3.48 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.041e-05/0.2173, allocations: 12 kB / 0.6058 GB, free: 3.469 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.2173, allocations: 8 kB / 0.6058 GB, free: 3.461 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.219, allocations: 0.525 MB / 0.6063 GB, free: 2.938 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.003439/0.2224, allocations: 2.617 MB / 0.6089 GB, free: 84 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2159/0.4383, allocations: 441.9 kB / 0.6093 GB, free: 61.35 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.4387, allocations: 178.1 kB / 0.6095 GB, free: 61.34 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04569/0.4844, allocations: 24.3 MB / 0.6332 GB, free: 45.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.4844, allocations: 47.12 kB / 0.6333 GB, free: 45.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 1.894e-06/0.4844, allocations: 0 / 0.6333 GB, free: 45.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=25): time 0.00266/0.4871, allocations: 0.7944 MB / 0.634 GB, free: 45.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.4871, allocations: 106.1 kB / 0.6342 GB, free: 45.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.4874, allocations: 316.3 kB / 0.6345 GB, free: 44.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.4874, allocations: 32.58 kB / 0.6345 GB, free: 44.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.75e-05/0.4875, allocations: 212.1 kB / 0.6347 GB, free: 44.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.778e-05/0.4876, allocations: 87.8 kB / 0.6348 GB, free: 44.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.635e-05/0.4877, allocations: 73.3 kB / 0.6348 GB, free: 44.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.687e-05/0.4877, allocations: 338.1 kB / 0.6352 GB, free: 44.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.4881, allocations: 138.5 kB / 0.6353 GB, free: 44.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.4885, allocations: 236.9 kB / 0.6355 GB, free: 43.97 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/0.4892, allocations: 353.8 kB / 0.6359 GB, free: 43.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4892, allocations: 3.031 kB / 0.6359 GB, free: 43.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008848/0.49, allocations: 424.4 kB / 0.6363 GB, free: 43.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.4901, allocations: 10.16 kB / 0.6363 GB, free: 43.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4901, allocations: 3.594 kB / 0.6363 GB, free: 43.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.4901, allocations: 3.781 kB / 0.6363 GB, free: 43.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.4904, allocations: 81.09 kB / 0.6364 GB, free: 43.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.4904, allocations: 8.281 kB / 0.6364 GB, free: 43.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.4906, allocations: 43.3 kB / 0.6364 GB, free: 43.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.4907, allocations: 19.09 kB / 0.6364 GB, free: 43.48 MB / 462.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.0001304/0.4908, allocations: 164.4 kB / 0.6366 GB, free: 43.33 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.261e-05/0.4909, allocations: 37.33 kB / 0.6366 GB, free: 43.31 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.4929, allocations: 1.894 MB / 0.6385 GB, free: 42.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.4929, allocations: 28.58 kB / 0.6385 GB, free: 42.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4929, allocations: 3.984 kB / 0.6385 GB, free: 42.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.4929, allocations: 1.719 kB / 0.6385 GB, free: 42.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007805/0.4937, allocations: 1.023 MB / 0.6395 GB, free: 41.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.4937, allocations: 0 / 0.6395 GB, free: 41.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002755/0.494, allocations: 71.28 kB / 0.6396 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.494, allocations: 0 / 0.6396 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.494, allocations: 7.938 kB / 0.6396 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.494, allocations: 3.688 kB / 0.6396 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.494, allocations: 1.125 kB / 0.6396 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.4951, allocations: 1.096 MB / 0.6407 GB, free: 40.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.34e-05/0.4952, allocations: 166.9 kB / 0.6408 GB, free: 40.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.187e-05/0.4953, allocations: 26.25 kB / 0.6408 GB, free: 40.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.4955, allocations: 19.77 kB / 0.6409 GB, free: 40.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.311e-05/0.4956, allocations: 35.86 kB / 0.6409 GB, free: 40.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.4956, allocations: 11.86 kB / 0.6409 GB, free: 40.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.4958, allocations: 331.3 kB / 0.6412 GB, free: 40.44 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4958, allocations: 0 / 0.6412 GB, free: 40.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002409/0.4983, allocations: 1.005 MB / 0.6422 GB, free: 40.3 MB / 462.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.004423/0.5027, allocations: 2.711 MB / 0.6448 GB, free: 38.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009378/0.5036, allocations: 0.579 MB / 0.6454 GB, free: 38.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5036, allocations: 0 / 0.6454 GB, free: 38.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.5041, allocations: 406.8 kB / 0.6458 GB, free: 38.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009451/0.505, allocations: 213.2 kB / 0.646 GB, free: 38.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.5103, allocations: 4.988 MB / 0.6509 GB, free: 32.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.5106, allocations: 0.9599 MB / 0.6518 GB, free: 31.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003474/0.511, allocations: 280.8 kB / 0.6521 GB, free: 31.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.5112, allocations: 263.3 kB / 0.6523 GB, free: 31.44 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5112, allocations: 0 / 0.6523 GB, free: 31.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07431/0.5855, allocations: 46.61 MB / 0.6978 GB, free: 1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.38, allocations: 14.44 kB / 0.6979 GB, free: 0.9883 MB / 478.1 MB " [Timeout remaining time 648] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.909687019884586]