Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.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.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001868/0.001868, allocations: 192.8 kB / 16.14 MB, free: 6.715 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.6/1.6, allocations: 205.1 MB / 222 MB, free: 4.773 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.001227/0.001227, allocations: 55.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.27, allocations: 46.63 MB / 324.7 MB, free: 2.078 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005492/0.2756, allocations: 4.322 MB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.2785, allocations: 1.353 MB / 330.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003613/0.2789, allocations: 12.81 kB / 330.4 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003305/0.2792, allocations: 80.33 kB / 330.4 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.2796, allocations: 195.3 kB / 330.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009662/0.2806, allocations: 371.3 kB / 331 MB, free: 13 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.2817, allocations: 1.075 MB / 332.1 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003693/0.2821, allocations: 231.6 kB / 332.3 MB, free: 12.23 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006026/0.2827, allocations: 442.7 kB / 332.7 MB, free: 12 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005444/0.2832, allocations: 0.4893 MB / 333.2 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.2834, allocations: 58.38 kB / 333.3 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002774/0.2837, allocations: 107.9 kB / 333.4 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.2839, allocations: 187.3 kB / 333.6 MB, free: 11.35 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004047/0.2843, allocations: 406 kB / 334 MB, free: 10.95 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008879/0.2852, allocations: 1.004 MB / 335 MB, free: 9.945 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.2852, allocations: 4 kB / 335 MB, free: 9.941 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.21e-07/0.2852, allocations: 0 / 335 MB, free: 9.941 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.2852, allocations: 0 / 335 MB, free: 9.941 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003083/0.2883, allocations: 1.291 MB / 336.3 MB, free: 8.602 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2884, allocations: 12.03 kB / 336.3 MB, free: 8.59 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002208/0.2886, allocations: 87.91 kB / 336.4 MB, free: 8.504 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.2891, allocations: 433.7 kB / 336.8 MB, free: 8.039 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.2892, allocations: 50.38 kB / 336.8 MB, free: 7.988 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.2894, allocations: 76.28 kB / 336.9 MB, free: 7.914 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.291, allocations: 0.8116 MB / 337.7 MB, free: 7.098 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.291, allocations: 3.906 kB / 337.7 MB, free: 7.094 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.423e-05/0.2911, allocations: 36 kB / 337.7 MB, free: 7.059 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.2911, allocations: 16 kB / 337.8 MB, free: 7.043 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.2931, allocations: 0.8666 MB / 338.6 MB, free: 6.176 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004074/0.2972, allocations: 2.388 MB / 341 MB, free: 3.656 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.2987, allocations: 0.7113 MB / 341.7 MB, free: 2.938 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009354/0.2997, allocations: 476.3 kB / 342.2 MB, free: 2.473 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.007e-05/0.2998, allocations: 12.98 kB / 342.2 MB, free: 2.461 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.301, allocations: 0.5517 MB / 342.8 MB, free: 1.895 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 2.174e-06/0.301, allocations: 0 / 342.8 MB, free: 1.895 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01101/0.312, allocations: 4.209 MB / 347 MB, free: 13.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.3121, allocations: 60.41 kB / 347 MB, free: 13.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004802/0.3126, allocations: 393.8 kB / 347.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.771e-05/0.3127, allocations: 65.56 kB / 347.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.3129, allocations: 276.9 kB / 347.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.3132, allocations: 359 kB / 348.1 MB, free: 12.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/0.3136, allocations: 186.8 kB / 348.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.3137, allocations: 370.8 kB / 348.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009864/0.3147, allocations: 438.4 kB / 349.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.3159, allocations: 0.5345 MB / 349.6 MB, free: 10.85 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.3177, allocations: 0.7792 MB / 350.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.3177, allocations: 0 / 350.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003242/0.3209, allocations: 1.358 MB / 351.7 MB, free: 8.68 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.321, allocations: 4 kB / 351.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.321, allocations: 4 kB / 351.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.3222, allocations: 0.6504 MB / 352.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007944/0.323, allocations: 195.7 kB / 352.6 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004528/0.3276, allocations: 3.27 MB / 355.9 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.329, allocations: 179.8 kB / 356 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.3292, allocations: 39.98 kB / 356.1 MB, free: 4.148 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007563/0.33, allocations: 217.7 kB / 356.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/0.3303, allocations: 75.09 kB / 356.4 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002447/0.3305, allocations: 107 kB / 356.5 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.3305, allocations: 8 kB / 356.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.3306, allocations: 4 kB / 356.5 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.3306, allocations: 7.984 kB / 356.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005864/0.3365, allocations: 2.534 MB / 359 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.3365, allocations: 4 kB / 359 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.3375, allocations: 171.8 kB / 359.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/0.3395, allocations: 0.6233 MB / 359.8 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.3396, allocations: 31.97 kB / 359.8 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00546/0.3451, allocations: 3.097 MB / 362.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3451, allocations: 192 / 362.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006512/0.3517, allocations: 1.856 MB / 364.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006463/0.3523, allocations: 228.2 kB / 365 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/0.3527, allocations: 35.98 kB / 365.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00218/0.3549, allocations: 211.6 kB / 365.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/0.3562, allocations: 372.3 kB / 365.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.3563, allocations: 39.97 kB / 365.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.3566, allocations: 279 kB / 365.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3566, allocations: 0 / 365.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009594/0.3576, allocations: 244 kB / 366.2 MB, free: 9.664 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003557/0.358, allocations: 172.8 kB / 366.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.3606, allocations: 1.188 MB / 367.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3606, allocations: 0 / 367.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.3623, allocations: 0.7742 MB / 368.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.3635, allocations: 117.5 kB / 368.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.3689, allocations: 2.267 MB / 370.7 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006184/0.3695, allocations: 0.9244 MB / 371.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004533/0.37, allocations: 81.45 kB / 371.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.3702, allocations: 59.41 kB / 371.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3702, allocations: 0 / 371.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of Templates: time 0.02652/0.3968, allocations: 16.1 MB / 387.8 MB, free: 3.844 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)