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.0009451/0.0009451, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001063/0.001063, allocations: 173 kB / 23.03 MB, free: 1.543 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.079/1.079, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.004931/0.004931, allocations: 1.188 MB / 261.1 MB, free: 11.89 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 1.983e-06/1.983e-06, allocations: 0 / 331.1 MB, free: 3.355 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.664e-05, allocations: 4.562 kB / 331.1 MB, free: 3.352 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.003488/0.003514, allocations: 2.455 MB / 333.6 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.005053, allocations: 0.9429 MB / 334.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.005228, allocations: 3.938 kB / 334.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004628/0.005691, allocations: 83.34 kB / 334.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003429/0.006034, allocations: 123.1 kB / 334.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.006296, allocations: 103.8 kB / 334.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000355/0.006651, allocations: 359.3 kB / 335.2 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.006791, allocations: 45.23 kB / 335.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003909/0.007182, allocations: 211.5 kB / 335.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.007394, allocations: 127.7 kB / 335.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.029e-05/0.007434, allocations: 28 kB / 335.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.007576, allocations: 79.86 kB / 335.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.007683, allocations: 79.72 kB / 335.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.267e-05/0.007776, allocations: 99.73 kB / 335.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.008171, allocations: 275.1 kB / 336.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.008174, allocations: 0 / 336.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.008176, allocations: 0 / 336.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.008182, allocations: 4 kB / 336.1 MB, free: 14.34 MB / 314.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.0007855/0.008967, allocations: 0.6127 MB / 336.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.009008, allocations: 12.03 kB / 336.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.365e-05/0.009102, allocations: 44.75 kB / 336.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.009403, allocations: 233.7 kB / 337 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.009432, allocations: 16.81 kB / 337 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.009474, allocations: 24.38 kB / 337.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.009829, allocations: 236.4 kB / 337.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.009845, allocations: 8.141 kB / 337.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.009865, allocations: 4.375 kB / 337.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.009875, allocations: 7.938 kB / 337.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002214/0.0101, allocations: 136.9 kB / 337.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.01117, allocations: 0.9959 MB / 338.4 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.0114, allocations: 123.1 kB / 338.6 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.113e-05/0.01149, allocations: 67.69 kB / 338.6 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.01151, allocations: 7.938 kB / 338.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.01153, allocations: 37.39 kB / 338.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.613e-06/0.01154, allocations: 0 / 338.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008909/0.01243, allocations: 392.1 kB / 339.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.01246, allocations: 51.41 kB / 339.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.01265, allocations: 277.7 kB / 339.4 MB, free: 10.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.01268, allocations: 37.7 kB / 339.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.01279, allocations: 195.1 kB / 339.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.23e-05/0.01284, allocations: 71.42 kB / 339.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.785e-05/0.01293, allocations: 67.58 kB / 339.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0005343/0.01347, allocations: 0.5001 MB / 340.2 MB, free: 9.973 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.01359, allocations: 64.53 kB / 340.3 MB, free: 9.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.01372, allocations: 155 kB / 340.5 MB, free: 9.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.0139, allocations: 181.6 kB / 340.6 MB, free: 9.508 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01391, allocations: 4 kB / 340.6 MB, free: 9.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004332/0.01434, allocations: 288.8 kB / 340.9 MB, free: 9.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.01436, allocations: 8 kB / 340.9 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.01436, allocations: 0 / 340.9 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.01463, allocations: 151.7 kB / 341.1 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.01474, allocations: 39.92 kB / 341.1 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004454/0.01518, allocations: 0.8701 MB / 342 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.01531, allocations: 39.89 kB / 342 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.01533, allocations: 15.98 kB / 342 MB, free: 8.055 MB / 314.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.0001034/0.01543, allocations: 176.5 kB / 342.2 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/0.01548, allocations: 31.8 kB / 342.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.141e-05/0.01552, allocations: 29.95 kB / 342.3 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.01552, allocations: 4 kB / 342.3 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.01553, allocations: 0 / 342.3 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.01553, allocations: 0 / 342.3 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.01619, allocations: 0.5908 MB / 342.9 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01619, allocations: 0 / 342.9 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.114e-05/0.01628, allocations: 27.98 kB / 342.9 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.01647, allocations: 135.5 kB / 343 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.01649, allocations: 7.984 kB / 343 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004242/0.01691, allocations: 0.8741 MB / 343.9 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.01691, allocations: 4 kB / 343.9 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/0.01741, allocations: 447 kB / 344.3 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.725e-05/0.01748, allocations: 51.75 kB / 344.4 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.47e-05/0.01752, allocations: 8 kB / 344.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.605e-05/0.01761, allocations: 23.97 kB / 344.4 MB, free: 5.547 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.006e-05/0.01769, allocations: 43.91 kB / 344.5 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.01771, allocations: 11.92 kB / 344.5 MB, free: 5.492 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001035/0.01781, allocations: 192.4 kB / 344.7 MB, free: 5.305 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01781, allocations: 0 / 344.7 MB, free: 5.305 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00025/0.01806, allocations: 71.88 kB / 344.7 MB, free: 5.234 MB / 314.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.0007932/0.01885, allocations: 352.8 kB / 345.1 MB, free: 5.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.0192, allocations: 184.6 kB / 345.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.0192, allocations: 0.5 kB / 345.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.01933, allocations: 104.4 kB / 345.4 MB, free: 4.715 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.01962, allocations: 64.55 kB / 345.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.02129, allocations: 0.7763 MB / 346.2 MB, free: 3.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.392e-05/0.02134, allocations: 84.31 kB / 346.3 MB, free: 3.738 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.21e-05/0.0214, allocations: 25.94 kB / 346.3 MB, free: 3.715 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.02146, allocations: 24.48 kB / 346.3 MB, free: 3.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.02146, allocations: 0 / 346.3 MB, free: 3.691 MB / 314.7 MB Notification: Performance of Templates: time 0.007593/0.02906, allocations: 4.819 MB / 351.2 MB, free: 14.93 MB / 330.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.1253283037804067]