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.001562/0.001562, allocations: 81.17 kB / 19.87 MB, free: 4.617 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.001991/0.001991, allocations: 173 kB / 23.28 MB, free: 1.215 MB / 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 1.008/1.008, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.005105/0.005105, allocations: 1.195 MB / 261.4 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.104e-06/2.104e-06, allocations: 0 / 331.6 MB, free: 18.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.149e-05, allocations: 2.312 kB / 331.6 MB, free: 18 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.00255/0.002572, allocations: 2.438 MB / 334 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.003599, allocations: 0.9272 MB / 334.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.003712, allocations: 7.938 kB / 335 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.004048, allocations: 83.36 kB / 335 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.004237, allocations: 115.1 kB / 335.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001314/0.004369, allocations: 99.86 kB / 335.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.004597, allocations: 367.2 kB / 335.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.004709, allocations: 37.25 kB / 335.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.004967, allocations: 215.5 kB / 335.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.00513, allocations: 135.6 kB / 336 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.507e-05/0.005165, allocations: 28 kB / 336 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.714e-05/0.005262, allocations: 83.86 kB / 336.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.185e-05/0.005344, allocations: 67.8 kB / 336.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.072e-05/0.005415, allocations: 91.75 kB / 336.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.005677, allocations: 283 kB / 336.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.00568, allocations: 7.875 kB / 336.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.00568, allocations: 0 / 336.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.005685, allocations: 0 / 336.5 MB, free: 13.02 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.0005873/0.006273, allocations: 0.6205 MB / 337.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.006307, allocations: 8.031 kB / 337.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.423e-05/0.006371, allocations: 44.8 kB / 337.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.006561, allocations: 233.7 kB / 337.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.006582, allocations: 16.88 kB / 337.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.026e-05/0.006613, allocations: 24.38 kB / 337.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.006825, allocations: 220.3 kB / 337.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.006837, allocations: 4.172 kB / 337.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.006852, allocations: 8.375 kB / 337.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.006859, allocations: 11.94 kB / 337.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.006993, allocations: 109.5 kB / 337.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007573/0.00775, allocations: 0.9567 MB / 338.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.007887, allocations: 119 kB / 338.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.341e-05/0.00794, allocations: 55.66 kB / 338.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.007961, allocations: 4 kB / 338.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.007975, allocations: 37.39 kB / 339 MB, free: 10.4 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.007976, allocations: 0 / 339 MB, free: 10.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006954/0.008672, allocations: 363.9 kB / 339.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.723e-05/0.008689, allocations: 51.41 kB / 339.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.008798, allocations: 269.5 kB / 339.7 MB, free: 9.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.008816, allocations: 33.7 kB / 339.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.008867, allocations: 199.1 kB / 339.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.0089, allocations: 75.41 kB / 340 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.008958, allocations: 71.55 kB / 340 MB, free: 9.297 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.009017, allocations: 0.5001 MB / 340.5 MB, free: 8.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.907e-05/0.009076, allocations: 48.52 kB / 340.6 MB, free: 8.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.671e-05/0.009152, allocations: 139 kB / 340.7 MB, free: 8.566 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.009271, allocations: 179.6 kB / 340.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.009274, allocations: 0 / 340.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002861/0.00956, allocations: 257.5 kB / 341.1 MB, free: 8.094 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.009572, allocations: 8 kB / 341.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.009576, allocations: 256 / 341.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001918/0.009768, allocations: 135.6 kB / 341.3 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.435e-05/0.009863, allocations: 39.92 kB / 341.3 MB, free: 7.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002857/0.01015, allocations: 0.8663 MB / 342.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.01025, allocations: 43.81 kB / 342.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.01026, allocations: 11.94 kB / 342.2 MB, free: 6.957 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 7.053e-05/0.01033, allocations: 172.5 kB / 342.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.01037, allocations: 23.86 kB / 342.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.892e-05/0.01041, allocations: 41.89 kB / 342.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.01041, allocations: 0 / 342.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.01041, allocations: 3.938 kB / 342.5 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01041, allocations: 8.016 kB / 342.5 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005066/0.01092, allocations: 0.5359 MB / 343 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.01092, allocations: 0 / 343 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.691e-05/0.01101, allocations: 23.98 kB / 343 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001491/0.01116, allocations: 131.6 kB / 343.2 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.01117, allocations: 11.98 kB / 343.2 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002496/0.01142, allocations: 0.8623 MB / 344 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.01142, allocations: 0 / 344 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.01174, allocations: 423.9 kB / 344.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.0118, allocations: 47.75 kB / 344.5 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/0.01183, allocations: 12 kB / 344.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.01194, allocations: 19.97 kB / 344.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.012, allocations: 43.91 kB / 344.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.01201, allocations: 11.98 kB / 344.6 MB, free: 4.496 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.521e-05/0.01207, allocations: 180.6 kB / 344.8 MB, free: 4.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01207, allocations: 4 kB / 344.8 MB, free: 4.316 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000201/0.01227, allocations: 63.89 kB / 344.8 MB, free: 4.254 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.0006585/0.01293, allocations: 351.8 kB / 345.2 MB, free: 4.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.01315, allocations: 160.8 kB / 345.3 MB, free: 3.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01315, allocations: 8.188 kB / 345.3 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.292e-05/0.01325, allocations: 99.28 kB / 345.4 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.01351, allocations: 56.64 kB / 345.5 MB, free: 3.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.01484, allocations: 0.7738 MB / 346.3 MB, free: 2.898 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.035e-05/0.01488, allocations: 88.31 kB / 346.4 MB, free: 2.793 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.163e-05/0.01493, allocations: 25.94 kB / 346.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.545e-05/0.01502, allocations: 110.2 kB / 346.5 MB, free: 2.656 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01502, allocations: 0 / 346.5 MB, free: 2.656 MB / 266.7 MB Notification: Performance of Templates: time 0.006268/0.02128, allocations: 4.866 MB / 351.3 MB, free: 13.85 MB / 282.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: 3.054450852330774]