Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.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.001508/0.001508, allocations: 73.09 kB / 20.66 MB, free: 3.848 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.001847/0.001847, allocations: 169 kB / 24.06 MB, free: 460 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 1.008/1.008, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.004949/0.004949, allocations: 1.195 MB / 262.2 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.Translational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking") translateModel(ElectricBraking.Examples.Translational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 331.5 MB, free: 3.891 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.258e-05, allocations: 2.312 kB / 331.5 MB, free: 3.887 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.004083/0.004105, allocations: 2.49 MB / 334 MB, free: 1.379 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.00597, allocations: 0.935 MB / 335 MB, free: 444 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.006127, allocations: 4 kB / 335 MB, free: 440 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004197/0.006547, allocations: 87.34 kB / 335.1 MB, free: 352 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003185/0.006865, allocations: 115.1 kB / 335.2 MB, free: 236 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.007125, allocations: 119.7 kB / 335.3 MB, free: 116 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.007564, allocations: 371.3 kB / 335.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.007704, allocations: 41.23 kB / 335.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000426/0.00813, allocations: 215.5 kB / 335.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.008382, allocations: 135.6 kB / 336 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.607e-05/0.008438, allocations: 28 kB / 336.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.008592, allocations: 79.86 kB / 336.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.008706, allocations: 79.72 kB / 336.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.008822, allocations: 103.7 kB / 336.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004268/0.009249, allocations: 291 kB / 336.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.009253, allocations: 0 / 336.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.009254, allocations: 0 / 336.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.00926, allocations: 0 / 336.6 MB, free: 14.79 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008773/0.01014, allocations: 0.6321 MB / 337.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.01017, allocations: 8.031 kB / 337.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.846e-05/0.01027, allocations: 44.75 kB / 337.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.01059, allocations: 228.6 kB / 337.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.01061, allocations: 16.88 kB / 337.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.01066, allocations: 20.38 kB / 337.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.01106, allocations: 228.5 kB / 337.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.01107, allocations: 4.188 kB / 337.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.0111, allocations: 8.375 kB / 337.8 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.01111, allocations: 7.938 kB / 337.8 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002654/0.01137, allocations: 121.3 kB / 337.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.01273, allocations: 0.8965 MB / 338.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.01299, allocations: 131.1 kB / 338.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.0131, allocations: 59.59 kB / 339 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.01312, allocations: 4 kB / 339 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.01315, allocations: 37.39 kB / 339 MB, free: 12.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.863e-06/0.01315, allocations: 3.938 kB / 339 MB, free: 12.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.001732/0.01488, allocations: 0.7376 MB / 339.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.01492, allocations: 59.34 kB / 339.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.01514, allocations: 276.1 kB / 340.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.01517, allocations: 37.7 kB / 340.1 MB, free: 11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.01527, allocations: 187.5 kB / 340.3 MB, free: 10.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.871e-05/0.01535, allocations: 103.2 kB / 340.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.01547, allocations: 71.31 kB / 340.5 MB, free: 10.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.01562, allocations: 0.5078 MB / 341 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.01575, allocations: 55.7 kB / 341.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.01592, allocations: 145.3 kB / 341.2 MB, free: 9.879 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.01615, allocations: 182.4 kB / 341.4 MB, free: 9.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01616, allocations: 0 / 341.4 MB, free: 9.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005628/0.01672, allocations: 282.3 kB / 341.7 MB, free: 9.379 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.01674, allocations: 6.969 kB / 341.7 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.01674, allocations: 8.219 kB / 341.7 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003182/0.01706, allocations: 135.5 kB / 341.8 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.01723, allocations: 47.91 kB / 341.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005594/0.01779, allocations: 0.8624 MB / 342.7 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.01798, allocations: 23.98 kB / 342.7 MB, free: 8.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.018, allocations: 11.98 kB / 342.7 MB, free: 8.254 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 (30): * Single equations (assignments): 29 * 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.0001282/0.01813, allocations: 184.4 kB / 342.9 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-05/0.0182, allocations: 31.86 kB / 343 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.01827, allocations: 34.27 kB / 343 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.01827, allocations: 4 kB / 343 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.01827, allocations: 4.031 kB / 343 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-06/0.01828, allocations: 0 / 343 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.01944, allocations: 0.6486 MB / 343.6 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.01944, allocations: 0 / 343.6 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.01961, allocations: 39.98 kB / 343.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002575/0.01987, allocations: 119.6 kB / 343.8 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.0199, allocations: 15.98 kB / 343.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005231/0.02042, allocations: 0.8586 MB / 344.7 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.02042, allocations: 0 / 344.7 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006732/0.02109, allocations: 458.6 kB / 345.1 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.0212, allocations: 55.73 kB / 345.2 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/0.02125, allocations: 15.98 kB / 345.2 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.02143, allocations: 19.95 kB / 345.2 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.02155, allocations: 51.91 kB / 345.3 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.02157, allocations: 4 kB / 345.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003639/0.02193, allocations: 185.1 kB / 345.4 MB, free: 5.418 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.02193, allocations: 0 / 345.4 MB, free: 5.418 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003737/0.0223, allocations: 71.92 kB / 345.5 MB, free: 5.348 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T) * 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 (19): * Single equations (assignments): 18 * 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.0006479/0.02295, allocations: 355.9 kB / 345.9 MB, free: 5.113 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000267/0.02322, allocations: 173.2 kB / 346 MB, free: 4.938 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.02322, allocations: 0 / 346 MB, free: 4.938 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.02334, allocations: 100.7 kB / 346.1 MB, free: 4.836 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.02361, allocations: 63.95 kB / 346.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.02469, allocations: 0.719 MB / 346.9 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.066e-05/0.02478, allocations: 146.2 kB / 347.1 MB, free: 3.855 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.02489, allocations: 114.2 kB / 347.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of SimCode: time 4.71e-07/0.02489, allocations: 0 / 347.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of Templates: time 0.00396/0.02885, allocations: 4.542 MB / 351.7 MB, free: 15.2 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking > ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.805880988948047]