Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.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.000822/0.000822, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007661/0.0007661, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8648/0.8648, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.649e-05, allocations: 6.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.00392/0.003936, allocations: 4.187 MB / 322.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.005372, allocations: 1.627 MB / 324.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.152e-05/0.005433, allocations: 0 / 324.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.005665, allocations: 39.7 kB / 324.3 MB, free: 496 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.005931, allocations: 123.1 kB / 324.4 MB, free: 372 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.006364, allocations: 258.2 kB / 324.6 MB, free: 116 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.006629, allocations: 298.6 kB / 324.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.658e-05/0.006675, allocations: 9.25 kB / 324.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.006915, allocations: 175.6 kB / 325.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.007021, allocations: 67.8 kB / 325.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.00704, allocations: 8 kB / 325.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.007192, allocations: 91.88 kB / 325.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.007255, allocations: 43.77 kB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.007308, allocations: 59.89 kB / 325.4 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.007555, allocations: 231.3 kB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.007557, allocations: 0 / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007558, allocations: 0 / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.007563, allocations: 4 kB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006367/0.008199, allocations: 413.2 kB / 326 MB, free: 14.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.267e-05/0.008262, allocations: 12.92 kB / 326 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.008306, allocations: 50.73 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.008417, allocations: 20.84 kB / 326.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.00861, allocations: 157.6 kB / 326.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.008623, allocations: 8.656 kB / 326.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.00865, allocations: 16.38 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.008982, allocations: 380.2 kB / 326.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.008994, allocations: 192 / 326.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.009015, allocations: 11.94 kB / 326.6 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.009022, allocations: 4 kB / 326.6 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.009272, allocations: 147.8 kB / 326.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008413/0.01011, allocations: 0.8713 MB / 327.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002658/0.01038, allocations: 142.8 kB / 327.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.956e-05/0.01046, allocations: 48.83 kB / 327.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003118/0.01077, allocations: 332.1 kB / 328.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.01079, allocations: 38.56 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.01079, allocations: 0 / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001489/0.01228, allocations: 0.6917 MB / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.01231, allocations: 55.34 kB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.01241, allocations: 165.3 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.01243, allocations: 29.7 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.049e-05/0.01249, allocations: 144.1 kB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.01253, allocations: 79.31 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-05/0.0126, allocations: 57.7 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.872e-05/0.01267, allocations: 330.8 kB / 329.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.01281, allocations: 79.94 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.01299, allocations: 190.9 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.01332, allocations: 300.5 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01333, allocations: 3.984 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000398/0.01372, allocations: 317.1 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.01374, allocations: 7.984 kB / 330.6 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01374, allocations: 4 kB / 330.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.01376, allocations: 8.469 kB / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.01394, allocations: 83.89 kB / 330.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.01395, allocations: 7.938 kB / 330.7 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.01406, allocations: 19.98 kB / 330.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.01408, allocations: 8 kB / 330.8 MB, free: 9.582 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 8.144e-05/0.01416, allocations: 137.8 kB / 330.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.91e-05/0.01419, allocations: 19.84 kB / 330.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003872/0.01457, allocations: 250.5 kB / 331.2 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.01458, allocations: 3.984 kB / 331.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.01458, allocations: 0 / 331.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01459, allocations: 0 / 331.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008218/0.01541, allocations: 0.5588 MB / 331.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.01541, allocations: 0 / 331.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.01555, allocations: 51.91 kB / 331.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.01555, allocations: 4 kB / 331.8 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.01556, allocations: 7.984 kB / 331.8 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.01557, allocations: 4.125 kB / 331.8 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.01557, allocations: 4 kB / 331.8 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004694/0.01604, allocations: 410 kB / 332.2 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.435e-05/0.01605, allocations: 11.91 kB / 332.2 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.01607, allocations: 12.06 kB / 332.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.01618, allocations: 11.98 kB / 332.2 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.992e-05/0.0162, allocations: 15.92 kB / 332.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.01622, allocations: 15.98 kB / 332.3 MB, free: 7.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.117e-05/0.01627, allocations: 114.2 kB / 332.4 MB, free: 7.871 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01627, allocations: 0 / 332.4 MB, free: 7.871 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002348/0.0165, allocations: 63.94 kB / 332.4 MB, free: 7.809 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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 Backend phase and start with SimCode phase: time 0.0007281/0.01723, allocations: 0.9615 MB / 333.4 MB, free: 6.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.01756, allocations: 215.7 kB / 333.6 MB, free: 6.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01756, allocations: 0.9375 kB / 333.6 MB, free: 6.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.01768, allocations: 92.06 kB / 333.7 MB, free: 6.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.01792, allocations: 35.95 kB / 333.7 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.01979, allocations: 2.318 MB / 336 MB, free: 3.953 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.229e-05/0.01986, allocations: 103.3 kB / 336.1 MB, free: 3.828 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.01998, allocations: 49.88 kB / 336.2 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.975e-05/0.02006, allocations: 56.47 kB / 336.2 MB, free: 3.723 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.02006, allocations: 0 / 336.2 MB, free: 3.723 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/0.03712, allocations: 5.345 MB / 341.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.952/6.989, allocations: 7.125 kB / 341.6 MB, free: 14.53 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.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: 8.630719186738133]