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.001255/0.001255, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001454/0.001454, allocations: 187.4 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.464/1.464, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00176/0.00176, allocations: 48.02 kB / 370.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2436, allocations: 52.17 MB / 423.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002741/0.2464, allocations: 1.646 MB / 424.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008796/0.2472, allocations: 0.5222 MB / 425.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.732e-05/0.2473, allocations: 0 / 425.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.64e-05/0.2473, allocations: 15.86 kB / 425.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.253e-05/0.2474, allocations: 27.78 kB / 425.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.2476, allocations: 31.89 kB / 425.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.2477, allocations: 95.53 kB / 425.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.2479, allocations: 23.98 kB / 425.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.531e-05/0.2479, allocations: 43.91 kB / 425.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.987e-05/0.248, allocations: 39.78 kB / 425.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.248, allocations: 8 kB / 425.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.53e-05/0.2481, allocations: 16 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.351e-05/0.2481, allocations: 11.98 kB / 425.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.427e-05/0.2482, allocations: 51.8 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.2484, allocations: 104.8 kB / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2484, allocations: 0 / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2484, allocations: 0 / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2484, allocations: 0 / 425.7 MB, free: 12.02 MB / 334.1 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.0004998/0.2489, allocations: 302.1 kB / 426 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.2489, allocations: 8.031 kB / 426 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.2491, allocations: 16.89 kB / 426 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.2492, allocations: 114.5 kB / 426.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.2492, allocations: 8.375 kB / 426.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.2492, allocations: 8.375 kB / 426.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.2494, allocations: 96.97 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.2495, allocations: 0 / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.2495, allocations: 7.984 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2495, allocations: 0 / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.2496, allocations: 55.91 kB / 426.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007054/0.2503, allocations: 367.5 kB / 426.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.2504, allocations: 70.55 kB / 426.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.462e-05/0.2505, allocations: 28.84 kB / 426.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.2505, allocations: 4 kB / 426.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.2505, allocations: 34.5 kB / 426.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 3.246e-06/0.2505, allocations: 4 kB / 426.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002226/0.2508, allocations: 97.73 kB / 426.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.2508, allocations: 51.41 kB / 427 MB, free: 10.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.314e-05/0.2509, allocations: 113.8 kB / 427.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.2509, allocations: 25.7 kB / 427.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.503e-05/0.251, allocations: 99.98 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.251, allocations: 35.69 kB / 427.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.2511, allocations: 25.72 kB / 427.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2512, allocations: 318.8 kB / 427.6 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.942e-05/0.2512, allocations: 23.98 kB / 427.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-05/0.2513, allocations: 46.56 kB / 427.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.2514, allocations: 66.52 kB / 427.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2514, allocations: 0 / 427.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001621/0.2516, allocations: 101.6 kB / 427.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2516, allocations: 11.44 kB / 427.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2516, allocations: 0 / 427.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.2516, allocations: 3.938 kB / 427.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.2517, allocations: 27.92 kB / 427.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.2518, allocations: 4 kB / 427.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.612e-05/0.2518, allocations: 11.89 kB / 427.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2518, allocations: 4 kB / 427.9 MB, free: 9.68 MB / 334.1 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 9.797e-05/0.2519, allocations: 117.8 kB / 428 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.2519, allocations: 16 kB / 428 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.395e-05/0.252, allocations: 12.38 kB / 428 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.252, allocations: 3.938 kB / 428 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.252, allocations: 0 / 428 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.252, allocations: 0 / 428 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.2522, allocations: 160.9 kB / 428.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.2522, allocations: 0 / 428.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2523, allocations: 19.94 kB / 428.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2523, allocations: 0 / 428.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.2523, allocations: 3.984 kB / 428.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.2524, allocations: 7.922 kB / 428.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2524, allocations: 8.312 kB / 428.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002454/0.2526, allocations: 195.5 kB / 428.4 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.004e-05/0.2526, allocations: 3.938 kB / 428.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.2526, allocations: 3.984 kB / 428.4 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.789e-05/0.2527, allocations: 11.94 kB / 428.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.2527, allocations: 0 / 428.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.2527, allocations: 4 kB / 428.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.827e-05/0.2528, allocations: 91.58 kB / 428.5 MB, free: 8.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2528, allocations: 3.938 kB / 428.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.253, allocations: 27.89 kB / 428.5 MB, free: 8.93 MB / 334.1 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 9.706e-05/0.2531, allocations: 95.25 kB / 428.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001656/0.2533, allocations: 59.91 kB / 428.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2533, allocations: 0 / 428.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.569e-05/0.2533, allocations: 19.98 kB / 428.7 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.2537, allocations: 12.45 kB / 428.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007161/0.2544, allocations: 311 kB / 429 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.2548, allocations: 0.6924 MB / 429.7 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.876e-05/0.2548, allocations: 15.92 kB / 429.7 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.2548, allocations: 11.44 kB / 429.8 MB, free: 7.664 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2548, allocations: 0 / 429.8 MB, free: 7.664 MB / 334.1 MB Notification: Performance of Templates: time 0.003268/0.2581, allocations: 0.6947 MB / 430.4 MB, free: 6.977 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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: 4.35485699865967]