Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002408/0.002408, allocations: 197.9 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.691/1.691, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 59.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2956, allocations: 46.63 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002969/0.2987, allocations: 1.615 MB / 326.9 MB, free: 0.5586 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007784/0.2995, allocations: 0.5183 MB / 327.4 MB, free: 148 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.429e-05/0.2995, allocations: 2.094 kB / 327.4 MB, free: 148 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 4.981e-05/0.2996, allocations: 16.86 kB / 327.5 MB, free: 132 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 7.704e-05/0.2997, allocations: 23.09 kB / 327.5 MB, free: 112 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.2999, allocations: 36.98 kB / 327.5 MB, free: 80 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.3001, allocations: 101.2 kB / 327.6 MB, free: 20 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.3002, allocations: 35.34 kB / 327.6 MB, free: 0 / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.302e-05/0.3003, allocations: 37.34 kB / 327.7 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.686e-05/0.3004, allocations: 40.81 kB / 327.7 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.3004, allocations: 8.156 kB / 327.7 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.494e-05/0.3005, allocations: 14.97 kB / 327.7 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.376e-05/0.3005, allocations: 18.86 kB / 327.8 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.602e-05/0.3006, allocations: 48.5 kB / 327.8 MB, free: 15.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.3008, allocations: 100.9 kB / 327.9 MB, free: 15.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3008, allocations: 1.094 kB / 327.9 MB, free: 15.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3008, allocations: 0 / 327.9 MB, free: 15.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.3008, allocations: 0 / 327.9 MB, free: 15.83 MB / 270.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.0005323/0.3013, allocations: 382 kB / 328.3 MB, free: 15.44 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3014, allocations: 8.531 kB / 328.3 MB, free: 15.44 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.3016, allocations: 11.28 kB / 328.3 MB, free: 15.44 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.3017, allocations: 171.2 kB / 328.5 MB, free: 15.23 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.3017, allocations: 11.12 kB / 328.5 MB, free: 15.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.3018, allocations: 11.19 kB / 328.5 MB, free: 15.22 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.3019, allocations: 87.55 kB / 328.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.302, allocations: 1.031 kB / 328.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.302, allocations: 4 kB / 328.6 MB, free: 15.15 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.302, allocations: 3.25 kB / 328.6 MB, free: 15.15 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.3021, allocations: 51.41 kB / 328.6 MB, free: 15.13 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006694/0.3028, allocations: 409.8 kB / 329 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.3029, allocations: 67.44 kB / 329.1 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.848e-05/0.303, allocations: 35.91 kB / 329.1 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.303, allocations: 1.156 kB / 329.1 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.3031, allocations: 43.48 kB / 329.2 MB, free: 14.62 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3031, allocations: 1.062 kB / 329.2 MB, free: 14.62 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002629/0.3033, allocations: 83.06 kB / 329.3 MB, free: 14.57 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.3034, allocations: 52.66 kB / 329.3 MB, free: 14.51 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.955e-05/0.3035, allocations: 106.1 kB / 329.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.3035, allocations: 29.7 kB / 329.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.191e-05/0.3036, allocations: 104 kB / 329.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.008e-05/0.3036, allocations: 26.83 kB / 329.6 MB, free: 14.24 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.3037, allocations: 29.66 kB / 329.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3038, allocations: 325 kB / 329.9 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.7e-05/0.3038, allocations: 19.53 kB / 329.9 MB, free: 13.88 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.233e-05/0.3039, allocations: 49.91 kB / 330 MB, free: 13.84 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.304, allocations: 64.19 kB / 330.1 MB, free: 13.79 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.304, allocations: 5.25 kB / 330.1 MB, free: 13.79 MB / 270.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001601/0.3042, allocations: 108.6 kB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3042, allocations: 5.594 kB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3042, allocations: 0 / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.3043, allocations: 6.219 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.3044, allocations: 27.61 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3044, allocations: 1.219 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.129e-05/0.3045, allocations: 10.22 kB / 330.2 MB, free: 13.7 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.3045, allocations: 3.656 kB / 330.2 MB, free: 13.7 MB / 270.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 8.525e-05/0.3046, allocations: 121.6 kB / 330.3 MB, free: 13.57 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.3046, allocations: 2.25 kB / 330.3 MB, free: 13.57 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.612e-05/0.3046, allocations: 9.531 kB / 330.3 MB, free: 13.56 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3047, allocations: 5.375 kB / 330.4 MB, free: 13.56 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3047, allocations: 0 / 330.4 MB, free: 13.56 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3047, allocations: 5.141 kB / 330.4 MB, free: 13.55 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.3049, allocations: 190.1 kB / 330.5 MB, free: 13.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3049, allocations: 4 kB / 330.5 MB, free: 13.33 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.305, allocations: 27.55 kB / 330.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.305, allocations: 5.062 kB / 330.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.305, allocations: 1.406 kB / 330.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.305, allocations: 3.938 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.305, allocations: 0.7812 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.3053, allocations: 183.3 kB / 330.8 MB, free: 13.16 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.578e-05/0.3053, allocations: 83.11 kB / 330.8 MB, free: 13.06 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.3053, allocations: 4.938 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.617e-05/0.3054, allocations: 5.094 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.144e-05/0.3054, allocations: 14.17 kB / 330.9 MB, free: 13.04 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.3054, allocations: 2.062 kB / 330.9 MB, free: 13.04 MB / 270.1 MB Notification: Performance of sorting global known variables: time 3.925e-05/0.3055, allocations: 84.41 kB / 331 MB, free: 12.96 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3055, allocations: 0 / 331 MB, free: 12.96 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.3057, allocations: 22.28 kB / 331 MB, free: 12.96 MB / 270.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.766e-05/0.3058, allocations: 96.55 kB / 331.1 MB, free: 12.86 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.306, allocations: 61.94 kB / 331.1 MB, free: 12.84 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.306, allocations: 5.312 kB / 331.1 MB, free: 12.83 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 3.372e-05/0.306, allocations: 23.09 kB / 331.2 MB, free: 12.82 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.3063, allocations: 10.64 kB / 331.2 MB, free: 12.82 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005932/0.3069, allocations: 319.7 kB / 331.5 MB, free: 12.56 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.3072, allocations: 0.6917 MB / 332.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 3.578e-05/0.3073, allocations: 3.5 kB / 332.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.43e-05/0.3073, allocations: 18.34 kB / 332.2 MB, free: 11.84 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3073, allocations: 0 / 332.2 MB, free: 11.84 MB / 270.1 MB Notification: Performance of Templates: time 0.002868/0.3102, allocations: 0.6236 MB / 332.8 MB, free: 11.52 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1)