Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.0009257/0.0009257, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009412/0.0009412, allocations: 143.1 kB / 24.89 MB, free: 8.773 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.936/0.936, allocations: 173.4 MB / 201.5 MB, free: 8.242 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: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 268.4 MB, free: 9.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.608e-06/1.082e-05, allocations: 5.266 kB / 268.4 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.00162/0.001631, allocations: 1.658 MB / 270.1 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005587/0.002189, allocations: 0.5127 MB / 270.6 MB, free: 7.672 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.733e-05/0.002227, allocations: 0.8438 kB / 270.6 MB, free: 7.672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.58e-05/0.002262, allocations: 15.8 kB / 270.6 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.578e-05/0.002318, allocations: 24.75 kB / 270.7 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001633/0.002482, allocations: 28.55 kB / 270.7 MB, free: 7.605 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.852e-05/0.00258, allocations: 107.5 kB / 270.8 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.302e-05/0.002663, allocations: 25.98 kB / 270.8 MB, free: 7.477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.922e-05/0.002722, allocations: 59.88 kB / 270.9 MB, free: 7.418 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.034e-05/0.002793, allocations: 27.97 kB / 270.9 MB, free: 7.391 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.002809, allocations: 8 kB / 270.9 MB, free: 7.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.483e-05/0.002864, allocations: 15.92 kB / 270.9 MB, free: 7.367 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.714e-05/0.002881, allocations: 13.78 kB / 270.9 MB, free: 7.355 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.00291, allocations: 35.91 kB / 271 MB, free: 7.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.003015, allocations: 71.69 kB / 271 MB, free: 7.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.423e-06/0.003017, allocations: 4 kB / 271 MB, free: 7.246 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.003017, allocations: 0 / 271 MB, free: 7.246 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.675e-06/0.00302, allocations: 0.5 kB / 271 MB, free: 7.246 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0002522/0.003272, allocations: 277.5 kB / 271.3 MB, free: 6.953 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.0033, allocations: 12.69 kB / 271.3 MB, free: 6.941 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002159/0.005458, allocations: 25.55 kB / 271.4 MB, free: 6.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.845e-05/0.005547, allocations: 113.7 kB / 271.5 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.00556, allocations: 5.094 kB / 271.5 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.005583, allocations: 12.33 kB / 271.5 MB, free: 6.766 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.619e-05/0.00567, allocations: 75.55 kB / 271.6 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.005678, allocations: 192 / 271.6 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.086e-06/0.005686, allocations: 4.375 kB / 271.6 MB, free: 6.688 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.005692, allocations: 7.938 kB / 271.6 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.494e-05/0.005737, allocations: 23.97 kB / 271.6 MB, free: 6.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003508/0.006088, allocations: 261 kB / 271.8 MB, free: 6.387 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.863e-05/0.006156, allocations: 47.19 kB / 271.9 MB, free: 6.332 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.309e-05/0.006179, allocations: 21 kB / 271.9 MB, free: 6.309 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.971e-06/0.006185, allocations: 0.5 kB / 271.9 MB, free: 6.309 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.006204, allocations: 50.48 kB / 272 MB, free: 6.25 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.006205, allocations: 0 / 272 MB, free: 6.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 9.887e-05/0.006304, allocations: 53.69 kB / 272 MB, free: 6.191 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.00633, allocations: 55.41 kB / 272.1 MB, free: 6.125 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.357e-05/0.006384, allocations: 106.7 kB / 272.2 MB, free: 6.008 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.006394, allocations: 33.7 kB / 272.2 MB, free: 5.969 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.006431, allocations: 104.1 kB / 272.3 MB, free: 5.863 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.531e-05/0.006446, allocations: 27.73 kB / 272.3 MB, free: 5.836 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.006477, allocations: 37.58 kB / 272.4 MB, free: 5.793 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.66e-05/0.006543, allocations: 318.8 kB / 272.7 MB, free: 5.473 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.446e-05/0.006558, allocations: 11.98 kB / 272.7 MB, free: 5.461 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.591e-05/0.006584, allocations: 38.5 kB / 272.7 MB, free: 5.414 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.205e-05/0.006626, allocations: 46.55 kB / 272.8 MB, free: 5.359 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.006627, allocations: 0 / 272.8 MB, free: 5.359 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 6.896e-05/0.006696, allocations: 73.55 kB / 272.9 MB, free: 5.281 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.006708, allocations: 6.188 kB / 272.9 MB, free: 5.277 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.006714, allocations: 3.984 kB / 272.9 MB, free: 5.273 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.757e-06/0.006722, allocations: 4 kB / 272.9 MB, free: 5.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.762e-05/0.00679, allocations: 27.92 kB / 272.9 MB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.006793, allocations: 4.062 kB / 272.9 MB, free: 5.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.342e-05/0.006816, allocations: 11.94 kB / 272.9 MB, free: 5.227 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-06/0.006819, allocations: 0 / 272.9 MB, free: 5.227 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (13): * Single equations (assignments): 13 * 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 5.241e-05/0.006871, allocations: 121.8 kB / 273 MB, free: 5.098 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/0.006886, allocations: 7.984 kB / 273 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.006911, allocations: 12.38 kB / 273 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.006912, allocations: 3.938 kB / 273.1 MB, free: 5.07 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.006914, allocations: 4 kB / 273.1 MB, free: 5.066 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.006916, allocations: 0 / 273.1 MB, free: 5.066 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.206e-05/0.007008, allocations: 85.77 kB / 273.1 MB, free: 4.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.00701, allocations: 4.25 kB / 273.1 MB, free: 4.961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.365e-05/0.007063, allocations: 20 kB / 273.2 MB, free: 4.941 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.007066, allocations: 7.984 kB / 273.2 MB, free: 4.934 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.007074, allocations: 4 kB / 273.2 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.007075, allocations: 0 / 273.2 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.007076, allocations: 0 / 273.2 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.007188, allocations: 179.7 kB / 273.3 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-06/0.007194, allocations: 0 / 273.3 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.285e-06/0.007202, allocations: 0 / 273.3 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.942e-05/0.007232, allocations: 4 kB / 273.4 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.007242, allocations: 8.016 kB / 273.4 MB, free: 4.727 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.007245, allocations: 4 kB / 273.4 MB, free: 4.723 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.204e-05/0.007257, allocations: 12.86 kB / 273.4 MB, free: 4.707 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007257, allocations: 0 / 273.4 MB, free: 4.707 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001308/0.007388, allocations: 23.89 kB / 273.4 MB, free: 4.684 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.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 (8): * Single equations (assignments): 8 * 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 7.387e-05/0.007462, allocations: 84.41 kB / 273.5 MB, free: 4.594 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.767e-05/0.007529, allocations: 44.77 kB / 273.5 MB, free: 4.547 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.007532, allocations: 0 / 273.5 MB, free: 4.547 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.446e-05/0.007546, allocations: 16.86 kB / 273.5 MB, free: 4.527 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.007673, allocations: 20.05 kB / 273.6 MB, free: 4.508 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004763/0.008149, allocations: 244.5 kB / 273.8 MB, free: 4.238 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.251e-05/0.008182, allocations: 63.34 kB / 273.9 MB, free: 4.156 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.126e-05/0.008203, allocations: 3.953 kB / 273.9 MB, free: 4.152 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.008247, allocations: 63.36 kB / 273.9 MB, free: 4.09 MB / 250.7 MB Notification: Performance of SimCode: time 5.51e-07/0.008248, allocations: 0 / 273.9 MB, free: 4.09 MB / 250.7 MB Notification: Performance of Templates: time 0.001927/0.01018, allocations: 0.6716 MB / 274.6 MB, free: 3.434 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.44961496302858]