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.001085/0.001085, allocations: 108.3 kB / 19.71 MB, free: 436 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.001019/0.001019, allocations: 212.3 kB / 23 MB, free: 2.977 MB / 13.93 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.015/1.015, allocations: 230.6 MB / 256.8 MB, free: 9.586 MB / 202.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.005417/0.005417, allocations: 1.601 MB / 314.8 MB, free: 336 kB / 234.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: ElectricBraking requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 79.78 kB / 437.1 MB, free: 46.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1102, allocations: 53.77 MB / 490.9 MB, free: 10.78 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.002891/0.1131, allocations: 2.325 MB / 493.2 MB, free: 8.441 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1141, allocations: 0.8843 MB / 494.1 MB, free: 7.551 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1143, allocations: 7.938 kB / 494.1 MB, free: 7.543 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.1146, allocations: 99.33 kB / 494.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.1148, allocations: 107.2 kB / 494.3 MB, free: 7.34 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.115, allocations: 107.8 kB / 494.4 MB, free: 7.234 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.1152, allocations: 355.4 kB / 494.7 MB, free: 6.883 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1153, allocations: 37.25 kB / 494.8 MB, free: 6.844 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.1156, allocations: 155.5 kB / 494.9 MB, free: 6.691 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1157, allocations: 155.3 kB / 495.1 MB, free: 6.539 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.811e-05/0.1158, allocations: 24 kB / 495.1 MB, free: 6.516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.1159, allocations: 75.98 kB / 495.2 MB, free: 6.441 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.545e-05/0.116, allocations: 75.73 kB / 495.3 MB, free: 6.367 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.167e-05/0.1161, allocations: 111.5 kB / 495.4 MB, free: 6.258 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.1164, allocations: 366.5 kB / 495.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1164, allocations: 0 / 495.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1164, allocations: 0 / 495.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1164, allocations: 0 / 495.7 MB, free: 5.898 MB / 346.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.0006964/0.1171, allocations: 0.5284 MB / 496.2 MB, free: 5.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1171, allocations: 8.031 kB / 496.3 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.1172, allocations: 24.8 kB / 496.3 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.1175, allocations: 226.9 kB / 496.5 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1175, allocations: 16.81 kB / 496.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.1175, allocations: 20.38 kB / 496.5 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.1179, allocations: 274.8 kB / 496.8 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.1179, allocations: 7.953 kB / 496.8 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.1179, allocations: 8 kB / 496.8 MB, free: 4.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1179, allocations: 4 kB / 496.8 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.1182, allocations: 216.9 kB / 497 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1192, allocations: 0.8894 MB / 497.9 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.1195, allocations: 162.7 kB / 498.1 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.1196, allocations: 90.52 kB / 498.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.1196, allocations: 4 kB / 498.2 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.1196, allocations: 38.55 kB / 498.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.435e-06/0.1196, allocations: 4 kB / 498.2 MB, free: 3.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001005/0.1206, allocations: 493.3 kB / 498.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.1207, allocations: 55.41 kB / 498.8 MB, free: 2.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.1208, allocations: 239 kB / 499 MB, free: 2.457 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.1208, allocations: 29.7 kB / 499 MB, free: 2.422 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.703e-05/0.1209, allocations: 156.4 kB / 499.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/0.121, allocations: 75.41 kB / 499.2 MB, free: 2.191 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.804e-05/0.121, allocations: 57.92 kB / 499.3 MB, free: 2.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.312e-05/0.1211, allocations: 342.8 kB / 499.6 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.1213, allocations: 92.53 kB / 499.7 MB, free: 1.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.1214, allocations: 164.7 kB / 499.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.1216, allocations: 211.6 kB / 0.4884 GB, free: 1.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1216, allocations: 4 kB / 0.4884 GB, free: 1.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004779/0.1221, allocations: 358.2 kB / 0.4887 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1221, allocations: 12.03 kB / 0.4887 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1221, allocations: 0 / 0.4887 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003119/0.1225, allocations: 176.7 kB / 0.4889 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.1226, allocations: 39.92 kB / 0.4889 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005463/0.1231, allocations: 0.6774 MB / 0.4896 GB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.1233, allocations: 43.81 kB / 0.4896 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.1233, allocations: 11.98 kB / 0.4896 GB, free: 15.92 MB / 362.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.0001089/0.1234, allocations: 145.7 kB / 0.4898 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.1234, allocations: 19.86 kB / 0.4898 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.1235, allocations: 33.95 kB / 0.4898 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1235, allocations: 4.062 kB / 0.4898 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1235, allocations: 0 / 0.4898 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1235, allocations: 0 / 0.4898 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000747/0.1242, allocations: 0.612 MB / 0.4904 GB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1242, allocations: 0 / 0.4904 GB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.807e-05/0.1243, allocations: 31.92 kB / 0.4905 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.1246, allocations: 164.7 kB / 0.4906 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.1246, allocations: 7.938 kB / 0.4906 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004059/0.125, allocations: 0.6499 MB / 0.4913 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.125, allocations: 0 / 0.4913 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005684/0.1256, allocations: 0.5038 MB / 0.4918 GB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.526e-05/0.1256, allocations: 43.86 kB / 0.4918 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1257, allocations: 8 kB / 0.4918 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.1258, allocations: 35.89 kB / 0.4918 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.602e-05/0.1259, allocations: 40.02 kB / 0.4919 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.1259, allocations: 11.92 kB / 0.4919 GB, free: 13.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001035/0.126, allocations: 172.5 kB / 0.4921 GB, free: 13.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.126, allocations: 0 / 0.4921 GB, free: 13.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002344/0.1262, allocations: 75.83 kB / 0.4921 GB, free: 13.28 MB / 362.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.0009924/0.1272, allocations: 397.9 kB / 0.4925 GB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004129/0.1276, allocations: 235.5 kB / 0.4927 GB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1276, allocations: 0 / 0.4927 GB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.1278, allocations: 115.9 kB / 0.4928 GB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.1281, allocations: 40.28 kB / 0.4929 GB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.1298, allocations: 0.9873 MB / 0.4939 GB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.954e-05/0.1299, allocations: 138.2 kB / 0.494 GB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.338e-05/0.13, allocations: 27.42 kB / 0.494 GB, free: 11.46 MB / 362.7 MB Notification: Performance of SimCode: time 7.52e-07/0.13, allocations: 4 kB / 0.494 GB, free: 11.45 MB / 362.7 MB Notification: Performance of Templates: time 0.004728/0.1347, allocations: 4.257 MB / 0.4982 GB, free: 7.191 MB / 362.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 > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.593378714285791]