Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002243/0.002243, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.773e-05/2.991e-05, allocations: 6.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003469/0.003499, allocations: 1.611 MB / 273.9 MB, free: 240 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.004576, allocations: 0.5104 MB / 274.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.998e-05/0.004636, allocations: 4 kB / 274.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.371e-05/0.004689, allocations: 11.86 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.78e-05/0.004777, allocations: 27.72 kB / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.004976, allocations: 27.95 kB / 274.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.005148, allocations: 107.5 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.005281, allocations: 27.92 kB / 274.6 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.005387, allocations: 59.88 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.559e-05/0.005472, allocations: 27.91 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.005496, allocations: 15.92 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.267e-05/0.005569, allocations: 12 kB / 274.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.005592, allocations: 11.98 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.065e-05/0.005652, allocations: 39.91 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.005842, allocations: 99.67 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.005845, allocations: 0 / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.005846, allocations: 4 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.00585, allocations: 0 / 274.9 MB, free: 15.25 MB / 266.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.0005366/0.006387, allocations: 306.1 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.006426, allocations: 8.031 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.006595, allocations: 24.83 kB / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.006733, allocations: 117.6 kB / 275.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.006751, allocations: 8.375 kB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.006784, allocations: 8.375 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.006975, allocations: 82.22 kB / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.006987, allocations: 192 / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.007, allocations: 8.375 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.007014, allocations: 11.92 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.007135, allocations: 51.97 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007246/0.007859, allocations: 324.2 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.008014, allocations: 70.5 kB / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.687e-05/0.008081, allocations: 32.84 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.008096, allocations: 4 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.008145, allocations: 34.5 kB / 276 MB, free: 14.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.008145, allocations: 4 kB / 276 MB, free: 14.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002516/0.008397, allocations: 85.95 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.008444, allocations: 51.41 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.008563, allocations: 117.8 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.008586, allocations: 25.7 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.776e-05/0.008674, allocations: 104 kB / 276.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.008705, allocations: 27.75 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.008759, allocations: 25.7 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.00895, allocations: 322.8 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.271e-05/0.009003, allocations: 23.98 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.425e-05/0.009087, allocations: 46.56 kB / 276.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.009204, allocations: 62.52 kB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.009206, allocations: 4 kB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002012/0.009407, allocations: 113.8 kB / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.009422, allocations: 4 kB / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.009429, allocations: 4 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.00945, allocations: 0 / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.009593, allocations: 28 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.009601, allocations: 8.047 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.423e-05/0.009655, allocations: 11.89 kB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.009667, allocations: 7.938 kB / 277 MB, free: 12.94 MB / 266.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 0.0001092/0.009776, allocations: 121.8 kB / 277.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.009806, allocations: 4 kB / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.009839, allocations: 8.438 kB / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.009841, allocations: 0 / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.009847, allocations: 4 kB / 277.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.00985, allocations: 0 / 277.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.01005, allocations: 129.2 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01006, allocations: 4 kB / 277.3 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.01017, allocations: 20 kB / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01018, allocations: 0 / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.01019, allocations: 4 kB / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.01019, allocations: 0 / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01019, allocations: 0 / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.01045, allocations: 195.4 kB / 277.5 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.01047, allocations: 11.92 kB / 277.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.01049, allocations: 4 kB / 277.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.52e-05/0.01055, allocations: 3.984 kB / 277.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.497e-05/0.01057, allocations: 4 kB / 277.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.01057, allocations: 4.062 kB / 277.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.452e-05/0.01064, allocations: 91.27 kB / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01064, allocations: 0 / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002657/0.0109, allocations: 20 kB / 277.6 MB, free: 12.27 MB / 266.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.0001171/0.01102, allocations: 95.25 kB / 277.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001476/0.01117, allocations: 59.8 kB / 277.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01117, allocations: 0 / 277.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.683e-05/0.01121, allocations: 31.92 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.01152, allocations: 7.828 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006199/0.01214, allocations: 280.6 kB / 278.1 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.955e-05/0.01223, allocations: 79.58 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.255e-05/0.01226, allocations: 3.984 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.0123, allocations: 12.5 kB / 278.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.1e-07/0.0123, allocations: 0 / 278.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of Templates: time 0.003316/0.01562, allocations: 0.6097 MB / 278.8 MB, free: 11.05 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.235248830984347]