Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001113/0.001113, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001052/0.001052, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.0004683/0.0004683, allocations: 8 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2699, allocations: 47.58 MB / 326.5 MB, free: 1.598 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004951/0.2748, allocations: 3.724 MB / 330.2 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003209/0.2781, allocations: 1.281 MB / 331.5 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007668/0.2789, allocations: 16.31 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004834/0.2794, allocations: 84.84 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008062/0.2802, allocations: 203.3 kB / 331.8 MB, free: 13.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.2814, allocations: 327.7 kB / 332.1 MB, free: 13.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.2827, allocations: 0.9968 MB / 333.1 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004006/0.2832, allocations: 197.6 kB / 333.3 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008218/0.284, allocations: 417.9 kB / 333.7 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008478/0.2848, allocations: 465.6 kB / 334.1 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.285, allocations: 47.75 kB / 334.2 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003925/0.2854, allocations: 98.25 kB / 334.3 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.2856, allocations: 173.7 kB / 334.5 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.2858, allocations: 157.3 kB / 334.6 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007006/0.2865, allocations: 0.7285 MB / 335.3 MB, free: 10.75 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2865, allocations: 0 / 335.3 MB, free: 10.75 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.085e-06/0.2866, allocations: 0 / 335.3 MB, free: 10.75 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.2866, allocations: 7.938 kB / 335.3 MB, free: 10.75 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.002671/0.2892, allocations: 1.224 MB / 336.6 MB, free: 9.473 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2893, allocations: 8.031 kB / 336.6 MB, free: 9.465 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.2895, allocations: 90.97 kB / 336.7 MB, free: 9.375 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005296/0.29, allocations: 432.6 kB / 337.1 MB, free: 8.914 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.245e-05/0.2901, allocations: 50 kB / 337.1 MB, free: 8.863 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.2902, allocations: 71.91 kB / 337.2 MB, free: 8.793 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.2918, allocations: 0.8154 MB / 338 MB, free: 7.973 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.2918, allocations: 4 kB / 338 MB, free: 7.969 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.819e-05/0.2919, allocations: 24 kB / 338 MB, free: 7.945 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.2919, allocations: 20 kB / 338.1 MB, free: 7.926 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.2938, allocations: 0.8978 MB / 339 MB, free: 7.027 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004002/0.2978, allocations: 2.462 MB / 341.4 MB, free: 4.434 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.2993, allocations: 0.7269 MB / 342.2 MB, free: 3.703 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009346/0.3002, allocations: 480.3 kB / 342.6 MB, free: 3.234 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.147e-05/0.3003, allocations: 20.97 kB / 342.6 MB, free: 3.211 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.3015, allocations: 0.5595 MB / 343.2 MB, free: 2.641 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 2.204e-06/0.3015, allocations: 4 kB / 343.2 MB, free: 2.637 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01025/0.3118, allocations: 4.474 MB / 347.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.3119, allocations: 60.41 kB / 347.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000434/0.3123, allocations: 389.8 kB / 348.1 MB, free: 13.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.3124, allocations: 53.69 kB / 348.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.3126, allocations: 273 kB / 348.4 MB, free: 13.24 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002642/0.3129, allocations: 358.9 kB / 348.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.3129, allocations: 28 kB / 348.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3131, allocations: 370.8 kB / 349.2 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009094/0.314, allocations: 454.4 kB / 349.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009632/0.315, allocations: 0.5384 MB / 350.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008565/0.3159, allocations: 398.3 kB / 350.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3159, allocations: 0 / 350.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002872/0.3188, allocations: 1.369 MB / 351.9 MB, free: 9.711 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.3188, allocations: 12 kB / 351.9 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3188, allocations: 0 / 351.9 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.32, allocations: 0.6543 MB / 352.6 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007921/0.3208, allocations: 211.6 kB / 352.8 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004173/0.325, allocations: 3.298 MB / 356.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.3262, allocations: 239.9 kB / 356.3 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.789e-05/0.3263, allocations: 35.98 kB / 356.4 MB, free: 5.074 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003739/0.3266, allocations: 225.7 kB / 356.6 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.3268, allocations: 71.16 kB / 356.7 MB, free: 4.777 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.327, allocations: 107 kB / 356.8 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.327, allocations: 12 kB / 356.8 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3271, allocations: 0 / 356.8 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.3271, allocations: 7.984 kB / 356.8 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.3315, allocations: 2.554 MB / 359.3 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3315, allocations: 4 kB / 359.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007336/0.3323, allocations: 184 kB / 359.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/0.3334, allocations: 0.6152 MB / 360.1 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.761e-05/0.3335, allocations: 31.97 kB / 360.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003504/0.337, allocations: 3.139 MB / 363.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.337, allocations: 320 / 363.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00412/0.3411, allocations: 1.887 MB / 365.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000466/0.3416, allocations: 232.1 kB / 365.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/0.3418, allocations: 39.94 kB / 365.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.343, allocations: 275.7 kB / 365.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009456/0.3439, allocations: 424.1 kB / 366.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-05/0.344, allocations: 47.95 kB / 366.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003246/0.3444, allocations: 259.2 kB / 366.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3444, allocations: 0 / 366.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009104/0.3453, allocations: 252 kB / 366.7 MB, free: 10.37 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003329/0.3456, allocations: 160.6 kB / 366.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002506/0.3481, allocations: 1.216 MB / 368.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3482, allocations: 0 / 368.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.3498, allocations: 0.7898 MB / 368.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000807/0.3506, allocations: 121.6 kB / 369 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.3546, allocations: 2.38 MB / 371.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.3551, allocations: 0.9322 MB / 372.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003638/0.3555, allocations: 85.44 kB / 372.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.3557, allocations: 55.42 kB / 372.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3557, allocations: 3.938 kB / 372.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of Templates: time 0.0241/0.3798, allocations: 15.44 MB / 387.9 MB, free: 5.059 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)