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.001259/0.001259, allocations: 98.03 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.01113/0.01113, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.571/1.571, allocations: 205.4 MB / 222.5 MB, free: 5.789 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.0005027/0.0005027, allocations: 12 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2782, allocations: 47.58 MB / 327 MB, free: 1.207 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004313/0.2826, allocations: 3.925 MB / 331 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.2855, allocations: 1.314 MB / 332.3 MB, free: 13 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004286/0.286, allocations: 12.78 kB / 332.3 MB, free: 13 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003083/0.2863, allocations: 89.12 kB / 332.4 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000513/0.2868, allocations: 199.4 kB / 332.6 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.2879, allocations: 371.9 kB / 332.9 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.2891, allocations: 1.078 MB / 334 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005004/0.2896, allocations: 219.6 kB / 334.2 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006806/0.2903, allocations: 423 kB / 334.6 MB, free: 11.47 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005891/0.2909, allocations: 474.1 kB / 335.1 MB, free: 11.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.291, allocations: 47.34 kB / 335.1 MB, free: 11.13 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.2913, allocations: 99.89 kB / 335.2 MB, free: 11.03 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.2915, allocations: 183.3 kB / 335.4 MB, free: 10.85 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.2919, allocations: 419.7 kB / 335.8 MB, free: 10.43 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008763/0.2928, allocations: 0.9846 MB / 336.8 MB, free: 9.445 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.2928, allocations: 0 / 336.8 MB, free: 9.445 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2928, allocations: 3.938 kB / 336.8 MB, free: 9.441 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.2928, allocations: 0 / 336.8 MB, free: 9.441 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.003048/0.2959, allocations: 1.209 MB / 338 MB, free: 8.184 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.2959, allocations: 12.03 kB / 338 MB, free: 8.172 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002572/0.2962, allocations: 91.84 kB / 338.1 MB, free: 8.082 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/0.2968, allocations: 441.6 kB / 338.6 MB, free: 7.609 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.443e-05/0.2969, allocations: 54.38 kB / 338.6 MB, free: 7.555 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.297, allocations: 72.31 kB / 338.7 MB, free: 7.484 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.2988, allocations: 0.8233 MB / 339.5 MB, free: 6.656 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/0.2988, allocations: 7.906 kB / 339.5 MB, free: 6.648 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.572e-05/0.2989, allocations: 24 kB / 339.5 MB, free: 6.625 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.31e-05/0.299, allocations: 20 kB / 339.6 MB, free: 6.605 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.3009, allocations: 0.9056 MB / 340.5 MB, free: 5.699 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.3052, allocations: 2.459 MB / 342.9 MB, free: 3.109 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3066, allocations: 0.7308 MB / 343.6 MB, free: 2.371 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009395/0.3076, allocations: 488.3 kB / 344.1 MB, free: 1.895 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.788e-05/0.3077, allocations: 12.98 kB / 344.1 MB, free: 1.883 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001176/0.3089, allocations: 0.5634 MB / 344.7 MB, free: 1.305 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 3.206e-06/0.3089, allocations: 4 kB / 344.7 MB, free: 1.301 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01135/0.3202, allocations: 4.49 MB / 349.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.3203, allocations: 64.41 kB / 349.3 MB, free: 12.61 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/0.3207, allocations: 386 kB / 349.6 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.396e-05/0.3208, allocations: 57.69 kB / 349.7 MB, free: 12.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.321, allocations: 272.9 kB / 350 MB, free: 11.89 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/0.3213, allocations: 362.9 kB / 350.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.3214, allocations: 97.59 kB / 350.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3216, allocations: 374.7 kB / 350.8 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009532/0.3226, allocations: 454.4 kB / 351.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.3236, allocations: 0.5462 MB / 351.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.3253, allocations: 0.8104 MB / 352.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3253, allocations: 0 / 352.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003042/0.3284, allocations: 1.381 MB / 354 MB, free: 7.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3284, allocations: 4 kB / 354 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.3284, allocations: 4 kB / 354 MB, free: 7.812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.3296, allocations: 0.6543 MB / 354.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008062/0.3304, allocations: 203.8 kB / 354.8 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004337/0.3348, allocations: 3.314 MB / 358.1 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.3361, allocations: 235.9 kB / 358.4 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-05/0.3362, allocations: 39.98 kB / 358.4 MB, free: 3.172 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.0004265/0.3367, allocations: 217.7 kB / 358.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.3368, allocations: 75.09 kB / 358.7 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.3371, allocations: 107 kB / 358.8 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.3371, allocations: 8 kB / 358.8 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.3371, allocations: 4 kB / 358.8 MB, free: 2.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3371, allocations: 3.984 kB / 358.8 MB, free: 2.758 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004771/0.3419, allocations: 2.573 MB / 361.4 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.3419, allocations: 4 kB / 361.4 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008072/0.3427, allocations: 188 kB / 361.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3437, allocations: 0.623 MB / 362.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.574e-05/0.3438, allocations: 31.97 kB / 362.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003751/0.3476, allocations: 3.132 MB / 365.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3476, allocations: 3.938 kB / 365.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/0.3515, allocations: 1.891 MB / 367.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000484/0.352, allocations: 228.2 kB / 367.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.3522, allocations: 35.98 kB / 367.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.3536, allocations: 271.7 kB / 367.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008741/0.3545, allocations: 372.3 kB / 368.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.197e-05/0.3546, allocations: 43.97 kB / 368.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003359/0.3549, allocations: 271.1 kB / 368.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3549, allocations: 3.938 kB / 368.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008954/0.3558, allocations: 244 kB / 368.7 MB, free: 8.504 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.0003608/0.3562, allocations: 168.9 kB / 368.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002594/0.3588, allocations: 1.219 MB / 370.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3588, allocations: 0 / 370.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.3605, allocations: 0.7976 MB / 370.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009981/0.3615, allocations: 125.4 kB / 371 MB, free: 6.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004229/0.3657, allocations: 2.455 MB / 373.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.3663, allocations: 0.94 MB / 374.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003704/0.3667, allocations: 77.44 kB / 374.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.3669, allocations: 59.42 kB / 374.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3669, allocations: 0 / 374.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of Templates: time 0.0255/0.3924, allocations: 15.95 MB / 390.5 MB, free: 2.578 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)