Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001782/0.001782, allocations: 118.2 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001972/0.001972, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 63.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09772, allocations: 53.37 MB / 427 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.006704/0.1044, allocations: 4.572 MB / 431.6 MB, free: 24 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1858/0.2902, allocations: 1.814 MB / 433.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.297e-05/0.2903, allocations: 1.656 kB / 433.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002308/0.2905, allocations: 37.42 kB / 433.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.2908, allocations: 132.1 kB / 433.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005666/0.2914, allocations: 245.6 kB / 433.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.2917, allocations: 297.2 kB / 434.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.254e-05/0.2917, allocations: 5.844 kB / 434.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.292, allocations: 131.2 kB / 434.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.2921, allocations: 91.05 kB / 434.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.2921, allocations: 9.625 kB / 434.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.2923, allocations: 106.2 kB / 434.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.949e-05/0.2923, allocations: 40.98 kB / 434.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.578e-05/0.2924, allocations: 77.86 kB / 434.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.2927, allocations: 221.9 kB / 434.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2927, allocations: 0 / 434.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2927, allocations: 0 / 434.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.2927, allocations: 4.938 kB / 434.8 MB, free: 7.402 MB / 350.1 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.0008443/0.2936, allocations: 0.4886 MB / 435.3 MB, free: 7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2936, allocations: 14.06 kB / 435.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.444e-05/0.2936, allocations: 3.844 kB / 435.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.806e-05/0.2937, allocations: 50.39 kB / 435.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.2938, allocations: 19 kB / 435.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.2941, allocations: 211.2 kB / 435.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2941, allocations: 8.5 kB / 435.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.2941, allocations: 15.16 kB / 435.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.2945, allocations: 216.4 kB / 435.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.2945, allocations: 5 kB / 435.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.2945, allocations: 6.281 kB / 435.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.2945, allocations: 3.25 kB / 435.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.2949, allocations: 152.5 kB / 436 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.2959, allocations: 0.9487 MB / 436.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.2963, allocations: 147 kB / 437.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.2965, allocations: 60.23 kB / 437.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004146/0.2969, allocations: 0.5008 MB / 437.6 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.2969, allocations: 40.72 kB / 437.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.2969, allocations: 0 / 437.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.002452/0.2993, allocations: 0.766 MB / 438.4 MB, free: 5.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.2994, allocations: 53.56 kB / 438.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.2995, allocations: 158.6 kB / 438.6 MB, free: 4.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.2995, allocations: 34.42 kB / 438.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.2996, allocations: 141.9 kB / 438.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.742e-05/0.2996, allocations: 76.44 kB / 438.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.699e-05/0.2997, allocations: 56.72 kB / 438.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.591e-05/0.2997, allocations: 327 kB / 439.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.3, allocations: 83.69 kB / 439.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.3003, allocations: 191.8 kB / 439.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000527/0.3008, allocations: 298.5 kB / 439.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3008, allocations: 0.9375 kB / 439.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006768/0.3015, allocations: 323.2 kB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3015, allocations: 7.797 kB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3015, allocations: 3.812 kB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.3015, allocations: 5.344 kB / 440.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.3019, allocations: 82.2 kB / 440.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.3019, allocations: 10.2 kB / 440.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.3021, allocations: 16.22 kB / 440.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.3022, allocations: 17.05 kB / 440.3 MB, free: 3.973 MB / 350.1 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 9.176e-05/0.3023, allocations: 138.7 kB / 440.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.3023, allocations: 16.41 kB / 440.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006558/0.303, allocations: 240.7 kB / 440.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.303, allocations: 2.75 kB / 440.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.303, allocations: 4 kB / 440.7 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.303, allocations: 6.297 kB / 440.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.3042, allocations: 0.6022 MB / 441.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3042, allocations: 5.125 kB / 441.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.3045, allocations: 48.34 kB / 441.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.3045, allocations: 5.312 kB / 441.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.3045, allocations: 9.891 kB / 441.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3045, allocations: 1.406 kB / 441.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3045, allocations: 6.266 kB / 441.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000785/0.3053, allocations: 405.3 kB / 441.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.273e-05/0.3054, allocations: 105.1 kB / 441.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.3054, allocations: 12.11 kB / 441.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.3056, allocations: 15.03 kB / 441.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.3057, allocations: 15.38 kB / 441.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.3057, allocations: 7.766 kB / 441.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.928e-05/0.3058, allocations: 119.3 kB / 442 MB, free: 3.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3058, allocations: 0 / 442 MB, free: 3.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.3061, allocations: 66.39 kB / 442.1 MB, free: 3.051 MB / 350.1 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.001057/0.3072, allocations: 0.9547 MB / 443 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006114/0.3078, allocations: 210.2 kB / 443.2 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3078, allocations: 4.125 kB / 443.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002398/0.308, allocations: 83.88 kB / 443.3 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.3084, allocations: 35.3 kB / 443.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.3114, allocations: 2.382 MB / 445.7 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.3117, allocations: 0.7216 MB / 446.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.3119, allocations: 46.03 kB / 446.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.312, allocations: 51.14 kB / 446.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.312, allocations: 4 kB / 446.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.3342, allocations: 4.552 MB / 451.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/8.149, allocations: 16.08 kB / 451.1 MB, free: 15.02 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.597507347993087]