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.001172/0.001172, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001529/0.00153, allocations: 177.3 kB / 15.95 MB, free: 216 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.597/1.597, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004444/0.0004444, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2778, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004271/0.2822, allocations: 3.483 MB / 329.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003119/0.2853, allocations: 1.321 MB / 331.2 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.2857, allocations: 13.41 kB / 331.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.286, allocations: 70.19 kB / 331.3 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005215/0.2865, allocations: 254.9 kB / 331.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.2875, allocations: 337.8 kB / 331.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008998/0.2884, allocations: 0.6931 MB / 332.6 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003735/0.2888, allocations: 197.5 kB / 332.8 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000626/0.2894, allocations: 410.5 kB / 333.2 MB, free: 12.26 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006336/0.2901, allocations: 461.2 kB / 333.6 MB, free: 11.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.2902, allocations: 50.66 kB / 333.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002937/0.2905, allocations: 89.77 kB / 333.8 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.2908, allocations: 168.3 kB / 333.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.291, allocations: 155.2 kB / 334.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008034/0.2918, allocations: 0.7403 MB / 334.8 MB, free: 11.08 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2918, allocations: 11.88 kB / 334.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2918, allocations: 0 / 334.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.2918, allocations: 0 / 334.8 MB, free: 11.07 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.002948/0.2948, allocations: 1.224 MB / 336.1 MB, free: 9.793 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.2948, allocations: 8.031 kB / 336.1 MB, free: 9.785 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.2951, allocations: 90.97 kB / 336.2 MB, free: 9.695 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.2957, allocations: 420.7 kB / 336.6 MB, free: 9.246 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.83e-05/0.2958, allocations: 50 kB / 336.6 MB, free: 9.195 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.296, allocations: 79.83 kB / 336.7 MB, free: 9.117 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.2976, allocations: 0.8115 MB / 337.5 MB, free: 8.301 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.2976, allocations: 4 kB / 337.5 MB, free: 8.297 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.25e-05/0.2977, allocations: 28 kB / 337.6 MB, free: 8.27 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.2977, allocations: 16 kB / 337.6 MB, free: 8.254 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.2996, allocations: 0.8939 MB / 338.5 MB, free: 7.359 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004311/0.304, allocations: 2.462 MB / 340.9 MB, free: 4.766 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.3057, allocations: 0.7308 MB / 341.7 MB, free: 4.031 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.807e-05/0.3058, allocations: 12.98 kB / 341.7 MB, free: 4.02 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.3071, allocations: 0.5595 MB / 342.2 MB, free: 3.449 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 4.248e-06/0.3071, allocations: 0 / 342.2 MB, free: 3.449 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01085/0.3179, allocations: 4.462 MB / 346.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.318, allocations: 60.41 kB / 346.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.3185, allocations: 393.8 kB / 347.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.3186, allocations: 61.69 kB / 347.2 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.3188, allocations: 272.9 kB / 347.5 MB, free: 14.06 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002832/0.3191, allocations: 366.9 kB / 347.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.117e-05/0.3192, allocations: 20 kB / 347.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3193, allocations: 374.8 kB / 348.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000964/0.3203, allocations: 446.4 kB / 348.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.3214, allocations: 0.5384 MB / 349.2 MB, free: 12.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008667/0.3223, allocations: 394.3 kB / 349.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.3223, allocations: 0 / 349.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002963/0.3253, allocations: 1.369 MB / 350.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3253, allocations: 8 kB / 350.9 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3253, allocations: 0 / 350.9 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.3266, allocations: 0.6543 MB / 351.6 MB, free: 9.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007713/0.3273, allocations: 211.6 kB / 351.8 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/0.3317, allocations: 3.306 MB / 355.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.333, allocations: 239.9 kB / 355.3 MB, free: 5.926 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.496e-05/0.3331, allocations: 35.98 kB / 355.4 MB, free: 5.891 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.0005059/0.3336, allocations: 225.7 kB / 355.6 MB, free: 5.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.3337, allocations: 71.16 kB / 355.7 MB, free: 5.59 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002247/0.3339, allocations: 107 kB / 355.8 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.334, allocations: 12 kB / 355.8 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.334, allocations: 0 / 355.8 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.334, allocations: 3.984 kB / 355.8 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/0.3388, allocations: 2.558 MB / 358.3 MB, free: 2.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.066e-06/0.3388, allocations: 4 kB / 358.3 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.3396, allocations: 192 kB / 358.5 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.3407, allocations: 0.6153 MB / 359.1 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.513e-05/0.3408, allocations: 31.97 kB / 359.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003847/0.3447, allocations: 3.151 MB / 362.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.3447, allocations: 8.094 kB / 362.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004111/0.3488, allocations: 1.958 MB / 364.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004372/0.3493, allocations: 240.1 kB / 364.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.3494, allocations: 32 kB / 364.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.3507, allocations: 267.7 kB / 364.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008761/0.3516, allocations: 432.1 kB / 365.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.214e-05/0.3517, allocations: 47.91 kB / 365.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003017/0.352, allocations: 267.1 kB / 365.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.352, allocations: 0 / 365.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009793/0.353, allocations: 244 kB / 365.8 MB, free: 11.05 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.0004382/0.3535, allocations: 168.7 kB / 366 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.3562, allocations: 1.216 MB / 367.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3562, allocations: 0 / 367.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.3578, allocations: 0.7898 MB / 368 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/0.3586, allocations: 93.97 kB / 368.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/0.3633, allocations: 2.385 MB / 370.4 MB, free: 6.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.3639, allocations: 0.9478 MB / 371.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003868/0.3643, allocations: 77.47 kB / 371.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.3645, allocations: 59.41 kB / 371.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3645, allocations: 0 / 371.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of Templates: time 0.02453/0.389, allocations: 15.41 MB / 386.9 MB, free: 5.777 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: