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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 61.19 kB / 308.3 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1074, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.006731/0.1142, allocations: 4.544 MB / 363.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002299/0.1166, allocations: 1.818 MB / 365.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1167, allocations: 4 kB / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002109/0.1169, allocations: 39.69 kB / 365.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.1174, allocations: 123.2 kB / 365.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.1181, allocations: 254.1 kB / 365.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.1184, allocations: 282.9 kB / 365.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.203e-05/0.1185, allocations: 25.05 kB / 366 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.1187, allocations: 131.5 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.1189, allocations: 75.73 kB / 366.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.1189, allocations: 8 kB / 366.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.1191, allocations: 99.88 kB / 366.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.1192, allocations: 47.81 kB / 366.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.811e-05/0.1193, allocations: 71.73 kB / 366.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.1196, allocations: 211.4 kB / 366.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1197, allocations: 0 / 366.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1197, allocations: 0 / 366.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1197, allocations: 11.94 kB / 366.6 MB, free: 5.629 MB / 302.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.0009268/0.1206, allocations: 491.2 kB / 367.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1207, allocations: 8.031 kB / 367.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.1209, allocations: 20.84 kB / 367.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.1212, allocations: 208.1 kB / 367.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.1212, allocations: 12.66 kB / 367.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.1212, allocations: 12.38 kB / 367.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/0.1217, allocations: 213.7 kB / 367.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.1217, allocations: 11.88 kB / 367.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.1217, allocations: 12 kB / 367.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1217, allocations: 7.984 kB / 367.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.1221, allocations: 143.8 kB / 367.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.1234, allocations: 0.9439 MB / 368.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.1238, allocations: 154.7 kB / 368.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.1239, allocations: 52.83 kB / 368.9 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005406/0.1245, allocations: 0.5071 MB / 369.4 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.1245, allocations: 34.56 kB / 369.4 MB, free: 2.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.1245, allocations: 4 kB / 369.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002436/0.127, allocations: 0.7615 MB / 370.2 MB, free: 1.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.127, allocations: 55.41 kB / 370.2 MB, free: 1.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.1272, allocations: 154.4 kB / 370.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.1272, allocations: 25.7 kB / 370.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.436e-05/0.1273, allocations: 147.8 kB / 370.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.1274, allocations: 75 kB / 370.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.1275, allocations: 61.55 kB / 370.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1276, allocations: 322.8 kB / 371 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.1278, allocations: 87.69 kB / 371.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.1281, allocations: 193.5 kB / 371.3 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005386/0.1287, allocations: 301.4 kB / 371.6 MB, free: 208 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1287, allocations: 0 / 371.6 MB, free: 208 kB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.1879/0.3166, allocations: 312.1 kB / 371.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.3167, allocations: 6.188 kB / 371.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3167, allocations: 4.734 kB / 371.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/0.3168, allocations: 6.656 kB / 371.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004363/0.3172, allocations: 87.53 kB / 372 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.3172, allocations: 6.406 kB / 372 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.3175, allocations: 21.31 kB / 372 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.3176, allocations: 16.28 kB / 372 MB, free: 20.73 MB / 302.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 0.0001292/0.3177, allocations: 141.4 kB / 372.1 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.3178, allocations: 12.55 kB / 372.2 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007262/0.3185, allocations: 241.8 kB / 372.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3185, allocations: 5.812 kB / 372.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3185, allocations: 0 / 372.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3186, allocations: 2.547 kB / 372.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.3198, allocations: 0.6033 MB / 373 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.3199, allocations: 2.031 kB / 373 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.3202, allocations: 55.45 kB / 373.1 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3202, allocations: 1.25 kB / 373.1 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.3202, allocations: 9.547 kB / 373.1 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.3202, allocations: 2.812 kB / 373.1 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3202, allocations: 1.969 kB / 373.1 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007984/0.321, allocations: 406.3 kB / 373.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.621e-05/0.3211, allocations: 105.1 kB / 373.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.3212, allocations: 9.25 kB / 373.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.3215, allocations: 14.23 kB / 373.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.3215, allocations: 18.28 kB / 373.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.3215, allocations: 13.27 kB / 373.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.188e-05/0.3216, allocations: 115.7 kB / 373.7 MB, free: 19.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3216, allocations: 1.156 kB / 373.7 MB, free: 19.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004134/0.3221, allocations: 63 kB / 373.8 MB, free: 19.9 MB / 302.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.0002393/0.3223, allocations: 128.6 kB / 373.9 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006294/0.3229, allocations: 223.2 kB / 374.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.323, allocations: 0.5625 kB / 374.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.3232, allocations: 88.44 kB / 374.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.3236, allocations: 45.02 kB / 374.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.3247, allocations: 477.9 kB / 374.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/0.3249, allocations: 0.7173 MB / 375.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.3251, allocations: 47.5 kB / 375.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.3252, allocations: 24.31 kB / 375.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3252, allocations: 0 / 375.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of Templates: time 0.00718/0.3324, allocations: 2.676 MB / 378.2 MB, free: 18.67 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.makefile (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 & ./Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches