Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.00138/0.00138, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007681/0.007681, allocations: 172.2 kB / 16.27 MB, free: 6.652 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.645/1.645, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0005335/0.0005336, allocations: 14.66 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2995, allocations: 47.59 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001494/0.3011, allocations: 1.339 MB / 328.4 MB, free: 340 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007467/0.3018, allocations: 0.513 MB / 328.9 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.712e-05/0.3019, allocations: 1.406 kB / 328.9 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.337e-05/0.3019, allocations: 9.047 kB / 328.9 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.697e-05/0.302, allocations: 28.2 kB / 328.9 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.3022, allocations: 15.8 kB / 328.9 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.3024, allocations: 99.62 kB / 329 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.3025, allocations: 31.75 kB / 329.1 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.624e-05/0.3026, allocations: 32.08 kB / 329.1 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.844e-05/0.3027, allocations: 33.42 kB / 329.1 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.3027, allocations: 3.625 kB / 329.1 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.35e-05/0.3028, allocations: 7.656 kB / 329.1 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.3028, allocations: 22.56 kB / 329.2 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.3029, allocations: 66.78 kB / 329.2 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.303, allocations: 96.84 kB / 329.3 MB, free: 15.62 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.303, allocations: 4 kB / 329.3 MB, free: 15.62 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3031, allocations: 0 / 329.3 MB, free: 15.62 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3031, allocations: 0 / 329.3 MB, free: 15.62 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.0004558/0.3035, allocations: 360.2 kB / 329.7 MB, free: 15.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3036, allocations: 9.906 kB / 329.7 MB, free: 15.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.3037, allocations: 14.2 kB / 329.7 MB, free: 15.24 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.3039, allocations: 167.1 kB / 329.9 MB, free: 15.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.3039, allocations: 15.81 kB / 329.9 MB, free: 15.03 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.3039, allocations: 13.94 kB / 329.9 MB, free: 15.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.3041, allocations: 84.38 kB / 330 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3042, allocations: 1.031 kB / 330 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.3042, allocations: 8.953 kB / 330 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3042, allocations: 1.969 kB / 330 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.3043, allocations: 52.72 kB / 330 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007298/0.3051, allocations: 405.8 kB / 330.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.3052, allocations: 66.22 kB / 330.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.112e-05/0.3053, allocations: 40.34 kB / 330.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.3053, allocations: 2.062 kB / 330.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.3053, allocations: 31.69 kB / 330.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.3053, allocations: 4 kB / 330.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002223/0.3056, allocations: 87.58 kB / 330.7 MB, free: 14.37 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.3056, allocations: 52.81 kB / 330.7 MB, free: 14.31 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.417e-05/0.3057, allocations: 105.6 kB / 330.8 MB, free: 14.2 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.3057, allocations: 29.7 kB / 330.8 MB, free: 14.17 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.3058, allocations: 104.1 kB / 330.9 MB, free: 14.07 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.206e-05/0.3059, allocations: 30.92 kB / 331 MB, free: 14.04 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.3059, allocations: 16.97 kB / 331 MB, free: 14.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.306, allocations: 323.9 kB / 331.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.409e-05/0.3061, allocations: 24.28 kB / 331.3 MB, free: 13.68 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.71e-05/0.3061, allocations: 41.66 kB / 331.4 MB, free: 13.65 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.949e-05/0.3063, allocations: 68.69 kB / 331.4 MB, free: 13.6 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3063, allocations: 1.125 kB / 331.4 MB, free: 13.6 MB / 270.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001542/0.3064, allocations: 108.4 kB / 331.5 MB, free: 13.53 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3064, allocations: 5.375 kB / 331.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3065, allocations: 1.188 kB / 331.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3065, allocations: 4.969 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.3066, allocations: 28.14 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3066, allocations: 5.219 kB / 331.6 MB, free: 13.51 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.793e-05/0.3067, allocations: 12.56 kB / 331.6 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.3067, allocations: 2.125 kB / 331.6 MB, free: 13.5 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.914e-05/0.3068, allocations: 122.6 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.3068, allocations: 2.812 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.3069, allocations: 9.688 kB / 331.7 MB, free: 13.37 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3069, allocations: 9.125 kB / 331.7 MB, free: 13.36 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3069, allocations: 4 kB / 331.7 MB, free: 13.36 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3069, allocations: 0 / 331.7 MB, free: 13.36 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.3071, allocations: 190.5 kB / 331.9 MB, free: 13.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3071, allocations: 0 / 331.9 MB, free: 13.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.899e-05/0.3072, allocations: 15.97 kB / 331.9 MB, free: 13.14 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3072, allocations: 4.844 kB / 332 MB, free: 13.13 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.3072, allocations: 8.891 kB / 332 MB, free: 13.12 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3073, allocations: 5.219 kB / 332 MB, free: 13.12 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3073, allocations: 0 / 332 MB, free: 13.12 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.3075, allocations: 191.3 kB / 332.2 MB, free: 12.96 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.707e-05/0.3075, allocations: 90.88 kB / 332.2 MB, free: 12.85 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.3075, allocations: 1.469 kB / 332.2 MB, free: 12.85 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.343e-05/0.3076, allocations: 5.219 kB / 332.3 MB, free: 12.85 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.3076, allocations: 6.5 kB / 332.3 MB, free: 12.84 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.3077, allocations: 6.156 kB / 332.3 MB, free: 12.84 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.08e-05/0.3077, allocations: 84.42 kB / 332.3 MB, free: 12.76 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3077, allocations: 0 / 332.3 MB, free: 12.76 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.308, allocations: 22.22 kB / 332.4 MB, free: 12.76 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 0.0001494/0.3081, allocations: 95.8 kB / 332.5 MB, free: 12.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.3083, allocations: 58.95 kB / 332.5 MB, free: 12.64 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3083, allocations: 0 / 332.5 MB, free: 12.64 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 3.76e-05/0.3083, allocations: 30.67 kB / 332.5 MB, free: 12.62 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.3086, allocations: 8.281 kB / 332.6 MB, free: 12.62 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006399/0.3093, allocations: 399.1 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.3096, allocations: 0.6916 MB / 333.6 MB, free: 11.59 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 3.567e-05/0.3096, allocations: 7.047 kB / 333.6 MB, free: 11.58 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/0.3096, allocations: 10.75 kB / 333.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3096, allocations: 0.9688 kB / 333.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of Templates: time 0.00272/0.3124, allocations: 0.5745 MB / 334.2 MB, free: 11.29 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1)