Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001334/0.001339, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001526/0.001527, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.591/1.591, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001346/0.001346, allocations: 51.92 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 46.64 MB / 326.6 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.004423/0.1096, allocations: 1.616 MB / 328.2 MB, free: 2.828 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.1108, allocations: 0.5114 MB / 328.7 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.995e-05/0.1109, allocations: 0 / 328.7 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.259e-05/0.111, allocations: 15.86 kB / 328.8 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.724e-05/0.1111, allocations: 23.77 kB / 328.8 MB, free: 2.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.1114, allocations: 35.89 kB / 328.8 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00014/0.1116, allocations: 95.55 kB / 328.9 MB, free: 2.141 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.1117, allocations: 31.98 kB / 328.9 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.1119, allocations: 35.92 kB / 329 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.112, allocations: 43.83 kB / 329 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.112, allocations: 8 kB / 329 MB, free: 2.023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.66e-05/0.1121, allocations: 19.88 kB / 329.1 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.809e-05/0.1122, allocations: 19.92 kB / 329.1 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.1122, allocations: 43.8 kB / 329.1 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.1125, allocations: 99.95 kB / 329.2 MB, free: 1.844 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1125, allocations: 4 kB / 329.2 MB, free: 1.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1125, allocations: 0 / 329.2 MB, free: 1.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.1125, allocations: 0 / 329.2 MB, free: 1.84 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.0006171/0.1132, allocations: 379.3 kB / 329.6 MB, free: 1.422 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1132, allocations: 8.031 kB / 329.6 MB, free: 1.414 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.1134, allocations: 16.83 kB / 329.6 MB, free: 1.398 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.1136, allocations: 168.2 kB / 329.8 MB, free: 1.195 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1136, allocations: 4.375 kB / 329.8 MB, free: 1.191 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.1137, allocations: 16.38 kB / 329.8 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1139, allocations: 89.91 kB / 329.9 MB, free: 1.082 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.1139, allocations: 8 kB / 329.9 MB, free: 1.074 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.1139, allocations: 4 kB / 329.9 MB, free: 1.07 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.114, allocations: 3.984 kB / 329.9 MB, free: 1.066 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.1141, allocations: 47.97 kB / 329.9 MB, free: 1.02 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009153/0.115, allocations: 408.4 kB / 330.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.1152, allocations: 70.55 kB / 330.4 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.932e-05/0.1152, allocations: 32.84 kB / 330.4 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.259e-05/0.1153, allocations: 0 / 330.4 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.1154, allocations: 38.5 kB / 330.5 MB, free: 420 kB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.1154, allocations: 4 kB / 330.5 MB, free: 416 kB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002524/0.1156, allocations: 93.75 kB / 330.6 MB, free: 316 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1157, allocations: 51.41 kB / 330.6 MB, free: 252 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.1159, allocations: 105.8 kB / 330.7 MB, free: 136 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.1159, allocations: 25.7 kB / 330.8 MB, free: 104 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.948e-05/0.116, allocations: 111.8 kB / 330.9 MB, free: 15.99 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.116, allocations: 31.55 kB / 330.9 MB, free: 15.96 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.1161, allocations: 25.72 kB / 330.9 MB, free: 15.93 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1162, allocations: 322.8 kB / 331.2 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.418e-05/0.1163, allocations: 16 kB / 331.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.663e-05/0.1164, allocations: 50.5 kB / 331.3 MB, free: 15.53 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.1166, allocations: 66.56 kB / 331.4 MB, free: 15.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1166, allocations: 0 / 331.4 MB, free: 15.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000174/0.1167, allocations: 105.6 kB / 331.5 MB, free: 15.34 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1168, allocations: 4 kB / 331.5 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1168, allocations: 0 / 331.5 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.1168, allocations: 11.88 kB / 331.5 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.117, allocations: 31.92 kB / 331.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.117, allocations: 0 / 331.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.505e-05/0.117, allocations: 11.84 kB / 331.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.117, allocations: 0 / 331.5 MB, free: 15.29 MB / 286.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.723e-05/0.1171, allocations: 121.8 kB / 331.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.1172, allocations: 8.062 kB / 331.7 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.1172, allocations: 12.36 kB / 331.7 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1172, allocations: 7.938 kB / 331.7 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1172, allocations: 0 / 331.7 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.1173, allocations: 0 / 331.7 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.1175, allocations: 189.5 kB / 331.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1175, allocations: 3.938 kB / 331.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.1176, allocations: 16 kB / 331.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1176, allocations: 0 / 331.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.1176, allocations: 4.25 kB / 331.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.1176, allocations: 15.94 kB / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1177, allocations: 0 / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.1179, allocations: 188.1 kB / 332.1 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.118, allocations: 77.11 kB / 332.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.118, allocations: 3.984 kB / 332.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.052e-05/0.118, allocations: 11.97 kB / 332.2 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.1181, allocations: 3.938 kB / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.1181, allocations: 4 kB / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.152e-05/0.1181, allocations: 91.33 kB / 332.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1182, allocations: 0 / 332.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.1184, allocations: 20 kB / 332.3 MB, free: 14.43 MB / 286.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.0001483/0.1186, allocations: 99.19 kB / 332.4 MB, free: 14.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001834/0.1188, allocations: 55.92 kB / 332.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1188, allocations: 4 kB / 332.4 MB, free: 14.26 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.1188, allocations: 23.98 kB / 332.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.1192, allocations: 8.125 kB / 332.5 MB, free: 14.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008356/0.12, allocations: 318.7 kB / 332.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1204, allocations: 0.7001 MB / 333.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.284e-05/0.1205, allocations: 11.94 kB / 333.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.1205, allocations: 11.44 kB / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1205, allocations: 0 / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of Templates: time 0.003383/0.1239, allocations: 0.6194 MB / 334.1 MB, free: 12.53 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1)