Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 80.81 kB / 20.8 MB, free: 3.656 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009398/0.0009398, allocations: 165 kB / 24.22 MB, free: 240 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9798/0.9798, allocations: 177.1 MB / 204.7 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.00565/0.00565, allocations: 1.196 MB / 262.3 MB, free: 11.74 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ElectricBraking.Examples.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") translateModel(ElectricBraking.Examples.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.825e-06/2.825e-06, allocations: 0 / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.147e-05/4.429e-05, allocations: 6.25 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.005771/0.005815, allocations: 2.487 MB / 281.8 MB, free: 8.266 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.007809, allocations: 0.9463 MB / 282.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.007964, allocations: 8 kB / 282.8 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004828/0.008447, allocations: 87.33 kB / 282.8 MB, free: 7.219 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.008749, allocations: 123 kB / 283 MB, free: 7.098 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.008974, allocations: 103.8 kB / 283.1 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005435/0.009518, allocations: 359.3 kB / 283.4 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.009665, allocations: 43.2 kB / 283.5 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003676/0.01003, allocations: 219.4 kB / 283.7 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.01027, allocations: 135.7 kB / 283.8 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.81e-05/0.01031, allocations: 24 kB / 283.8 MB, free: 6.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.01046, allocations: 83.86 kB / 283.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.01057, allocations: 67.8 kB / 284 MB, free: 6.082 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.398e-05/0.01066, allocations: 91.75 kB / 284.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.01111, allocations: 287 kB / 284.3 MB, free: 5.711 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.01112, allocations: 0 / 284.3 MB, free: 5.711 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.01112, allocations: 0 / 284.3 MB, free: 5.711 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.01113, allocations: 4 kB / 284.4 MB, free: 5.707 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0008453/0.01197, allocations: 0.4918 MB / 284.8 MB, free: 5.191 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.01202, allocations: 12.03 kB / 284.9 MB, free: 5.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.924e-05/0.0121, allocations: 32.91 kB / 284.9 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.01245, allocations: 199 kB / 285.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.01248, allocations: 16.88 kB / 285.1 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.01253, allocations: 24.33 kB / 285.1 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.01292, allocations: 215.8 kB / 285.3 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.01293, allocations: 192 / 285.3 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.01296, allocations: 12.36 kB / 285.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.01297, allocations: 7.938 kB / 285.4 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002303/0.0132, allocations: 97.55 kB / 285.4 MB, free: 4.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.01448, allocations: 0.7074 MB / 286.2 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.01472, allocations: 106.4 kB / 286.3 MB, free: 3.684 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.342e-05/0.0148, allocations: 44.84 kB / 286.3 MB, free: 3.637 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.01483, allocations: 4 kB / 286.3 MB, free: 3.633 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.01486, allocations: 34.56 kB / 286.3 MB, free: 3.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.004e-06/0.01486, allocations: 0 / 286.3 MB, free: 3.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001046/0.01591, allocations: 306.5 kB / 286.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.01595, allocations: 55.41 kB / 286.7 MB, free: 3.215 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.01617, allocations: 219.8 kB / 286.9 MB, free: 2.984 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.01621, allocations: 33.7 kB / 286.9 MB, free: 2.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.0163, allocations: 148.3 kB / 287.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.515e-05/0.01637, allocations: 75.36 kB / 287.2 MB, free: 2.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.475e-05/0.01646, allocations: 57.95 kB / 287.2 MB, free: 2.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.01658, allocations: 334.7 kB / 287.5 MB, free: 2.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.998e-05/0.01667, allocations: 40.55 kB / 287.6 MB, free: 2.281 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.0168, allocations: 109.6 kB / 287.7 MB, free: 2.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.01701, allocations: 153 kB / 287.8 MB, free: 1.973 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.01701, allocations: 0 / 287.8 MB, free: 1.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004067/0.01742, allocations: 211 kB / 288 MB, free: 1.758 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.01745, allocations: 8.031 kB / 288.1 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.01746, allocations: 4 kB / 288.1 MB, free: 1.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.0178, allocations: 120.8 kB / 288.2 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.01811, allocations: 47.91 kB / 288.2 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005117/0.01862, allocations: 0.5851 MB / 288.8 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.01883, allocations: 39.81 kB / 288.8 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.01884, allocations: 8 kB / 288.9 MB, free: 0.918 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001535/0.019, allocations: 131.8 kB / 289 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.01905, allocations: 23.97 kB / 289 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.01909, allocations: 29.95 kB / 289 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.0191, allocations: 4.031 kB / 289 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.0191, allocations: 4 kB / 289 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.01911, allocations: 3.938 kB / 289 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006002/0.01971, allocations: 411.6 kB / 289.4 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.01971, allocations: 0 / 289.4 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.01984, allocations: 27.98 kB / 289.5 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002156/0.02005, allocations: 124.7 kB / 289.6 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.02007, allocations: 7.938 kB / 289.6 MB, free: 124 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1772/0.1973, allocations: 0.5735 MB / 290.2 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.1973, allocations: 3.188 kB / 290.2 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005487/0.1978, allocations: 322.9 kB / 290.5 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.1979, allocations: 32.81 kB / 290.5 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.404e-05/0.198, allocations: 9.844 kB / 290.5 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1981, allocations: 24.19 kB / 290.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.696e-05/0.1982, allocations: 44.81 kB / 290.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.1982, allocations: 8.328 kB / 290.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.955e-05/0.1983, allocations: 64.94 kB / 290.7 MB, free: 24.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1983, allocations: 0 / 290.7 MB, free: 24.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002863/0.1986, allocations: 70.42 kB / 290.7 MB, free: 24.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaLoad.w,integrator.y,heatCapacitor.T,brake.phi) * Number of discrete variables: 5 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 3 (brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * 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: 1 * 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): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001047/0.1996, allocations: 463.1 kB / 291.2 MB, free: 24.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003594/0.2, allocations: 147.1 kB / 291.3 MB, free: 24.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.2, allocations: 2.688 kB / 291.3 MB, free: 24.06 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.2001, allocations: 88.22 kB / 291.4 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.2004, allocations: 63.61 kB / 291.5 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.202, allocations: 0.749 MB / 292.2 MB, free: 23.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.363e-05/0.202, allocations: 87.22 kB / 292.3 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.332e-05/0.2021, allocations: 18.31 kB / 292.3 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.2022, allocations: 83.53 kB / 292.4 MB, free: 23.66 MB / 266.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2022, allocations: 2.844 kB / 292.4 MB, free: 23.66 MB / 266.7 MB Notification: Performance of Templates: time 0.008759/0.211, allocations: 4.888 MB / 297.3 MB, free: 22.97 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.96201753616333]