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.0009106/0.0009106, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001941, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006324/0.0006324, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000879/0.001511, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8793/0.8793, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1675/1.047, allocations: 52.5 MB / 238.5 MB, free: 7.648 MB / 234.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.663e-06/1.663e-06, allocations: 0 / 239.7 MB, free: 6.414 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.476e-05, allocations: 2.312 kB / 239.7 MB, free: 6.41 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002574/0.002599, allocations: 1.711 MB / 241.4 MB, free: 4.707 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000704/0.003303, allocations: 0.517 MB / 241.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.003451, allocations: 6.5 kB / 242 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.341e-05/0.003504, allocations: 11.86 kB / 242 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.635e-05/0.003571, allocations: 27.72 kB / 242 MB, free: 4.145 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.003693, allocations: 27.89 kB / 242 MB, free: 4.117 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.003818, allocations: 99.48 kB / 242.1 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.003925, allocations: 33.41 kB / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.798e-05/0.004013, allocations: 59.88 kB / 242.2 MB, free: 3.93 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.292e-05/0.004095, allocations: 23.91 kB / 242.2 MB, free: 3.906 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.004113, allocations: 8 kB / 242.2 MB, free: 3.898 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.819e-05/0.004191, allocations: 20.75 kB / 242.3 MB, free: 3.879 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.359e-05/0.004214, allocations: 15.94 kB / 242.3 MB, free: 3.863 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.004246, allocations: 29.03 kB / 242.3 MB, free: 3.836 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.004394, allocations: 63.81 kB / 242.4 MB, free: 3.773 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.004405, allocations: 0 / 242.4 MB, free: 3.773 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.004407, allocations: 3.125 kB / 242.4 MB, free: 3.773 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.004416, allocations: 7.938 kB / 242.4 MB, free: 3.766 MB / 234.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.0003858/0.004802, allocations: 300.3 kB / 242.7 MB, free: 3.449 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.004832, allocations: 8.031 kB / 242.7 MB, free: 3.441 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.004996, allocations: 102 kB / 242.8 MB, free: 3.324 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.62e-05/0.005092, allocations: 113.7 kB / 242.9 MB, free: 3.188 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.005105, allocations: 4.375 kB / 242.9 MB, free: 3.184 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.005129, allocations: 13.64 kB / 242.9 MB, free: 3.172 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.005243, allocations: 66.22 kB / 243 MB, free: 3.102 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.005255, allocations: 4.172 kB / 243 MB, free: 3.098 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.005267, allocations: 9.406 kB / 243 MB, free: 3.09 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.005273, allocations: 3.938 kB / 243 MB, free: 3.086 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.624e-05/0.00533, allocations: 31.97 kB / 243 MB, free: 3.055 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.005745, allocations: 258.9 kB / 243.3 MB, free: 2.789 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.721e-05/0.005832, allocations: 54.41 kB / 243.3 MB, free: 2.727 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.738e-05/0.005859, allocations: 21 kB / 243.3 MB, free: 2.703 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.005868, allocations: 3.984 kB / 243.3 MB, free: 2.699 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.005889, allocations: 34.56 kB / 243.4 MB, free: 2.656 MB / 234.7 MB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.00589, allocations: 4.969 kB / 243.4 MB, free: 2.652 MB / 234.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001389/0.006029, allocations: 53.69 kB / 243.4 MB, free: 2.594 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.006057, allocations: 51.41 kB / 243.5 MB, free: 2.531 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.486e-05/0.006121, allocations: 115.5 kB / 243.6 MB, free: 2.406 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.006132, allocations: 25.7 kB / 243.6 MB, free: 2.375 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.006188, allocations: 109.9 kB / 243.7 MB, free: 2.266 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.006212, allocations: 31.73 kB / 243.8 MB, free: 2.234 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.006254, allocations: 33.64 kB / 243.8 MB, free: 2.195 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.307e-05/0.006338, allocations: 318.8 kB / 244.1 MB, free: 1.875 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.695e-05/0.006354, allocations: 7.984 kB / 244.1 MB, free: 1.867 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.213e-05/0.006387, allocations: 34.97 kB / 244.2 MB, free: 1.828 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.904e-05/0.006446, allocations: 55.11 kB / 244.2 MB, free: 1.766 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006448, allocations: 1.969 kB / 244.2 MB, free: 1.766 MB / 234.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001038/0.006552, allocations: 77.55 kB / 244.3 MB, free: 1.684 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.006565, allocations: 4 kB / 244.3 MB, free: 1.68 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.006569, allocations: 0 / 244.3 MB, free: 1.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.006583, allocations: 5.469 kB / 244.3 MB, free: 1.676 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.006739, allocations: 27.98 kB / 244.3 MB, free: 1.648 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.006744, allocations: 3.984 kB / 244.3 MB, free: 1.645 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.356e-05/0.006777, allocations: 8.625 kB / 244.3 MB, free: 1.637 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.006784, allocations: 4 kB / 244.3 MB, free: 1.633 MB / 234.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 7.875e-05/0.006863, allocations: 126.2 kB / 244.5 MB, free: 1.5 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.006886, allocations: 4.562 kB / 244.5 MB, free: 1.496 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.873e-05/0.006914, allocations: 10.09 kB / 244.5 MB, free: 1.484 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.006917, allocations: 4 kB / 244.5 MB, free: 1.48 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.006919, allocations: 0 / 244.5 MB, free: 1.48 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.006923, allocations: 3.984 kB / 244.5 MB, free: 1.477 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001205/0.007043, allocations: 81.78 kB / 244.6 MB, free: 1.379 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.007044, allocations: 0.5 kB / 244.6 MB, free: 1.379 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.007147, allocations: 32.09 kB / 244.6 MB, free: 1.352 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.426e-06/0.007155, allocations: 7.984 kB / 244.6 MB, free: 1.344 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.007158, allocations: 1.625 kB / 244.6 MB, free: 1.344 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.007167, allocations: 256 / 244.6 MB, free: 1.344 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.00717, allocations: 4 kB / 244.6 MB, free: 1.34 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.007172, allocations: 4 kB / 244.6 MB, free: 1.336 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.007314, allocations: 175.4 kB / 244.8 MB, free: 1.148 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.007326, allocations: 4 kB / 244.8 MB, free: 1.145 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.799e-05/0.007374, allocations: 0 / 244.8 MB, free: 1.145 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.007386, allocations: 3.984 kB / 244.8 MB, free: 1.141 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.007392, allocations: 8 kB / 244.8 MB, free: 1.133 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.497e-05/0.007407, allocations: 8.859 kB / 244.8 MB, free: 1.121 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007407, allocations: 0 / 244.8 MB, free: 1.121 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.007601, allocations: 23.94 kB / 244.8 MB, free: 1.098 MB / 234.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 0.0001224/0.007724, allocations: 88.34 kB / 244.9 MB, free: 1.004 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 8.634e-05/0.00781, allocations: 48.8 kB / 245 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.934e-06/0.007818, allocations: 0 / 245 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.915e-05/0.007847, allocations: 32.78 kB / 245 MB, free: 0.918 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.008049, allocations: 67.34 kB / 245.1 MB, free: 0.8398 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.00994, allocations: 237 kB / 245.3 MB, free: 0.582 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.022e-05/0.00998, allocations: 63.53 kB / 245.4 MB, free: 0.5 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 3.966e-05/0.01002, allocations: 8.734 kB / 245.4 MB, free: 500 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/0.01008, allocations: 63.36 kB / 245.4 MB, free: 436 kB / 234.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01008, allocations: 0 / 245.4 MB, free: 436 kB / 234.7 MB Notification: Performance of Templates: time 0.002665/0.01275, allocations: 0.7367 MB / 246.2 MB, free: 15.71 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3467695247381926]