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.007397/0.007397, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001613/0.001613, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.592/1.592, allocations: 205.1 MB / 222.5 MB, free: 4.367 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.001184/0.001184, allocations: 54.56 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1145, allocations: 46.62 MB / 373.1 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003678/0.1182, allocations: 1.613 MB / 374.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1194, allocations: 0.5189 MB / 375.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1195, allocations: 3.938 kB / 375.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.664e-05/0.1196, allocations: 11.86 kB / 375.3 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.1198, allocations: 27.77 kB / 375.3 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.12, allocations: 31.91 kB / 375.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.1202, allocations: 99.58 kB / 375.4 MB, free: 15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1204, allocations: 47.84 kB / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.07e-05/0.1205, allocations: 35.86 kB / 375.5 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.1206, allocations: 43.84 kB / 375.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.1206, allocations: 8 kB / 375.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.969e-05/0.1207, allocations: 15.98 kB / 375.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.1208, allocations: 15.94 kB / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.971e-05/0.1208, allocations: 43.86 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.121, allocations: 95.73 kB / 375.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1211, allocations: 0 / 375.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1211, allocations: 0 / 375.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1211, allocations: 0 / 375.7 MB, free: 14.7 MB / 318.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.0006845/0.1218, allocations: 387.3 kB / 376.1 MB, free: 14.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1218, allocations: 11.97 kB / 376.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.122, allocations: 12.84 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.1221, allocations: 164.3 kB / 376.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.1221, allocations: 8.375 kB / 376.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.1222, allocations: 20.36 kB / 376.3 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.1224, allocations: 77.98 kB / 376.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.1224, allocations: 3.938 kB / 376.4 MB, free: 13.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.1224, allocations: 8 kB / 376.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1224, allocations: 4 kB / 376.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.1226, allocations: 55.92 kB / 376.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007348/0.1233, allocations: 396.4 kB / 376.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.1234, allocations: 66.56 kB / 376.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.061e-05/0.1235, allocations: 44.83 kB / 377 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.1235, allocations: 0 / 377 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/0.1236, allocations: 34.56 kB / 377 MB, free: 13.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.1236, allocations: 0 / 377 MB, free: 13.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002185/0.1238, allocations: 93.61 kB / 377.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.1239, allocations: 55.41 kB / 377.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.806e-05/0.1239, allocations: 105.8 kB / 377.3 MB, free: 13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.124, allocations: 29.7 kB / 377.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.394e-05/0.124, allocations: 103.9 kB / 377.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.791e-05/0.1241, allocations: 27.56 kB / 377.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.372e-05/0.1242, allocations: 25.7 kB / 377.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1243, allocations: 318.8 kB / 377.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.587e-05/0.1244, allocations: 23.98 kB / 377.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.71e-05/0.1244, allocations: 42.56 kB / 377.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.1245, allocations: 70.45 kB / 377.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1245, allocations: 0 / 377.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001625/0.1247, allocations: 113.5 kB / 378 MB, free: 12.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.1247, allocations: 8 kB / 378 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1248, allocations: 3.938 kB / 378 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1248, allocations: 3.938 kB / 378 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.1249, allocations: 27.92 kB / 378 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.1249, allocations: 0 / 378 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.346e-05/0.125, allocations: 12 kB / 378.1 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.125, allocations: 8 kB / 378.1 MB, free: 12.14 MB / 318.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.524e-05/0.1251, allocations: 117.8 kB / 378.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.1251, allocations: 7.906 kB / 378.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.244e-05/0.1252, allocations: 8.375 kB / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1252, allocations: 3.938 kB / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1252, allocations: 0 / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1252, allocations: 0 / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.1254, allocations: 185.6 kB / 378.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1254, allocations: 8 kB / 378.4 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.1255, allocations: 24.23 kB / 378.4 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1255, allocations: 3.938 kB / 378.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.1255, allocations: 4 kB / 378.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1256, allocations: 7.875 kB / 378.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1256, allocations: 320 / 378.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.1259, allocations: 191.4 kB / 378.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.126, allocations: 89.05 kB / 378.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.126, allocations: 4.062 kB / 378.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.959e-05/0.1261, allocations: 3.938 kB / 378.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.1261, allocations: 7.984 kB / 378.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.1261, allocations: 0 / 378.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.004e-05/0.1262, allocations: 83.28 kB / 378.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1262, allocations: 0 / 378.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1264, allocations: 27.94 kB / 378.8 MB, free: 11.29 MB / 318.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.0001072/0.1265, allocations: 95.19 kB / 378.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.1267, allocations: 59.97 kB / 379 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1267, allocations: 0 / 379 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.344e-05/0.1268, allocations: 27.94 kB / 379 MB, free: 11.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.1271, allocations: 4 kB / 379 MB, free: 11.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000707/0.1278, allocations: 330.6 kB / 379.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.1281, allocations: 0.6924 MB / 380 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.695e-05/0.1282, allocations: 4 kB / 380 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.1282, allocations: 11.44 kB / 380 MB, free: 10.02 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1282, allocations: 0 / 380 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Templates: time 0.003152/0.1314, allocations: 0.6372 MB / 380.7 MB, free: 9.379 MB / 318.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)