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.0006594/0.0006594, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008709/0.00153, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007023/0.0007023, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009752/0.001678, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.035/1.035, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1139/1.149, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.004468/0.004468, allocations: 1.19 MB / 245.1 MB, free: 13.72 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00149/0.005959, allocations: 0.8152 MB / 246 MB, free: 12.9 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.212e-06/1.212e-06, allocations: 0 / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.622e-05/1.743e-05, allocations: 2.312 kB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.00263/0.002648, allocations: 2.546 MB / 249.8 MB, free: 9.059 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.003936, allocations: 0.9582 MB / 250.7 MB, free: 8.094 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.004065, allocations: 7.938 kB / 250.8 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.004334, allocations: 83.39 kB / 250.8 MB, free: 8.004 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.004545, allocations: 127 kB / 251 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.004721, allocations: 103.8 kB / 251.1 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.005049, allocations: 367.3 kB / 251.4 MB, free: 7.418 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.005163, allocations: 43.14 kB / 251.5 MB, free: 7.371 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003251/0.005488, allocations: 256.4 kB / 251.7 MB, free: 7.117 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.005681, allocations: 135.6 kB / 251.8 MB, free: 6.984 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.277e-05/0.005714, allocations: 24 kB / 251.9 MB, free: 6.961 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.005828, allocations: 79.92 kB / 251.9 MB, free: 6.883 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.755e-05/0.005916, allocations: 55.81 kB / 252 MB, free: 6.828 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.272e-05/0.005988, allocations: 75.81 kB / 252.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.006331, allocations: 255.1 kB / 252.3 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.377e-05/0.006345, allocations: 0 / 252.3 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.006346, allocations: 0 / 252.3 MB, free: 6.504 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.006359, allocations: 0 / 252.3 MB, free: 6.504 MB / 250.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.0006765/0.007036, allocations: 0.5656 MB / 252.9 MB, free: 5.914 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.007066, allocations: 11.98 kB / 252.9 MB, free: 5.902 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.037e-05/0.007127, allocations: 36.91 kB / 252.9 MB, free: 5.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.007429, allocations: 205.8 kB / 253.1 MB, free: 5.637 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.007451, allocations: 12.88 kB / 253.1 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.007485, allocations: 24.38 kB / 253.2 MB, free: 5.602 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.007737, allocations: 224 kB / 253.4 MB, free: 5.367 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.00775, allocations: 8.125 kB / 253.4 MB, free: 5.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.007765, allocations: 4.375 kB / 253.4 MB, free: 5.355 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.007771, allocations: 7.938 kB / 253.4 MB, free: 5.348 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.007925, allocations: 105.4 kB / 253.5 MB, free: 5.242 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007349/0.00866, allocations: 0.6558 MB / 254.2 MB, free: 4.551 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.008831, allocations: 118.1 kB / 254.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.272e-05/0.008884, allocations: 40.86 kB / 254.3 MB, free: 4.387 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.008907, allocations: 7.938 kB / 254.3 MB, free: 4.379 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.008929, allocations: 42.55 kB / 254.4 MB, free: 4.328 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.00893, allocations: 0 / 254.4 MB, free: 4.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.001274/0.0102, allocations: 0.6959 MB / 255.1 MB, free: 3.582 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/0.01023, allocations: 55.41 kB / 255.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.01037, allocations: 226.6 kB / 255.3 MB, free: 3.281 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.0104, allocations: 37.69 kB / 255.4 MB, free: 3.238 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.01047, allocations: 140.7 kB / 255.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.25e-05/0.01052, allocations: 87.25 kB / 255.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.791e-05/0.01059, allocations: 65.62 kB / 255.7 MB, free: 2.941 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.911e-05/0.01066, allocations: 334.8 kB / 256 MB, free: 2.605 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/0.01072, allocations: 39.98 kB / 256 MB, free: 2.566 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-05/0.01081, allocations: 119.7 kB / 256.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.01095, allocations: 159.7 kB / 256.3 MB, free: 2.238 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01095, allocations: 0 / 256.3 MB, free: 2.238 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002589/0.01121, allocations: 230.6 kB / 256.5 MB, free: 2.004 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.01123, allocations: 7.938 kB / 256.5 MB, free: 1.996 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.01124, allocations: 8 kB / 256.5 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/0.01146, allocations: 121 kB / 256.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.0116, allocations: 55.92 kB / 256.7 MB, free: 1.812 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003319/0.01193, allocations: 0.5851 MB / 257.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.01204, allocations: 23.92 kB / 257.3 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.01205, allocations: 15.98 kB / 257.3 MB, free: 1.16 MB / 250.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 9.065e-05/0.01214, allocations: 143.5 kB / 257.5 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.01218, allocations: 19.98 kB / 257.5 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.421e-05/0.01222, allocations: 34.27 kB / 257.5 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01222, allocations: 4 kB / 257.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.01223, allocations: 0 / 257.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.01223, allocations: 0 / 257.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006749/0.0129, allocations: 496.7 kB / 258 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.01291, allocations: 0 / 258 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.01305, allocations: 47.92 kB / 258.1 MB, free: 400 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.711e-05/0.01312, allocations: 31.83 kB / 258.1 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.01331, allocations: 116.9 kB / 258.2 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.01333, allocations: 15.98 kB / 258.2 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003671/0.0137, allocations: 0.5878 MB / 258.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.0137, allocations: 0 / 258.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004157/0.01411, allocations: 368.1 kB / 259.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.01415, allocations: 8 kB / 259.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.228e-05/0.01423, allocations: 15.98 kB / 259.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.01431, allocations: 47.89 kB / 259.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.01432, allocations: 8 kB / 259.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.394e-05/0.01438, allocations: 66.8 kB / 259.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01438, allocations: 0 / 259.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.01461, allocations: 75.92 kB / 259.4 MB, free: 15 MB / 266.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.001176/0.01578, allocations: 498.3 kB / 259.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003281/0.01611, allocations: 173.6 kB / 260.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/0.01613, allocations: 4 kB / 260.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.01625, allocations: 89.58 kB / 260.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.01663, allocations: 88.06 kB / 260.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.01907, allocations: 0.6344 MB / 260.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.563e-05/0.01913, allocations: 88.31 kB / 261 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.657e-05/0.0192, allocations: 26.38 kB / 261 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.01932, allocations: 99.28 kB / 261.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of SimCode: time 1.402e-06/0.01932, allocations: 0 / 261.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of Templates: time 0.007389/0.02671, allocations: 5.108 MB / 266.2 MB, free: 8.438 MB / 266.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7473974162712693]