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.0009987/0.0009987, allocations: 88.52 kB / 19.94 MB, free: 4.602 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.0009472/0.0009472, allocations: 173.9 kB / 23.21 MB, free: 1.328 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 0.9187/0.9187, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.005027/0.005027, allocations: 1.199 MB / 261.1 MB, free: 12.12 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.593e-06/1.593e-06, allocations: 0 / 383.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.517e-05, allocations: 2.281 kB / 383.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.002754/0.002779, allocations: 2.396 MB / 385.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.003863, allocations: 0.9155 MB / 386.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.00398, allocations: 7.938 kB / 386.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003584/0.004338, allocations: 87.34 kB / 386.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.004562, allocations: 119.1 kB / 387 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.004737, allocations: 103.8 kB / 387.1 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.005033, allocations: 375.2 kB / 387.5 MB, free: 9.961 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.005163, allocations: 41.19 kB / 387.5 MB, free: 9.922 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.005458, allocations: 219.5 kB / 387.7 MB, free: 9.707 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.005627, allocations: 143.6 kB / 387.9 MB, free: 9.566 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.005665, allocations: 28 kB / 387.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.005779, allocations: 71.92 kB / 388 MB, free: 9.469 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.566e-05/0.005874, allocations: 79.72 kB / 388.1 MB, free: 9.391 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.122e-05/0.005956, allocations: 99.73 kB / 388.2 MB, free: 9.293 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.006303, allocations: 382.8 kB / 388.5 MB, free: 8.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.006306, allocations: 0 / 388.5 MB, free: 8.918 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.006308, allocations: 0 / 388.5 MB, free: 8.918 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.006312, allocations: 0 / 388.5 MB, free: 8.918 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.0007475/0.00706, allocations: 0.54 MB / 389.1 MB, free: 8.348 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.007094, allocations: 8.031 kB / 389.1 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.007153, allocations: 32.75 kB / 389.1 MB, free: 8.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.007422, allocations: 221 kB / 389.3 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.007442, allocations: 20.88 kB / 389.3 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.007479, allocations: 24.38 kB / 389.4 MB, free: 8.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.007824, allocations: 276.1 kB / 389.6 MB, free: 7.738 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.007836, allocations: 4.172 kB / 389.6 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.007855, allocations: 8.375 kB / 389.7 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.007862, allocations: 7.938 kB / 389.7 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.008173, allocations: 221.9 kB / 389.9 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000924/0.009097, allocations: 0.8134 MB / 390.7 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.009386, allocations: 199.3 kB / 390.9 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.009518, allocations: 92.83 kB / 391 MB, free: 6.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.009544, allocations: 4 kB / 391 MB, free: 6.336 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.00957, allocations: 34.56 kB / 391 MB, free: 6.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.194e-06/0.009573, allocations: 0 / 391 MB, free: 6.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.001636/0.01121, allocations: 0.9945 MB / 392 MB, free: 5.242 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.01124, allocations: 59.34 kB / 392.1 MB, free: 5.172 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.01142, allocations: 249.6 kB / 392.3 MB, free: 4.922 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.01145, allocations: 33.7 kB / 392.3 MB, free: 4.883 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.183e-05/0.01152, allocations: 148.8 kB / 392.5 MB, free: 4.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.01157, allocations: 91.28 kB / 392.6 MB, free: 4.641 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.01164, allocations: 65.64 kB / 392.6 MB, free: 4.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.5e-05/0.01173, allocations: 330.8 kB / 393 MB, free: 4.238 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.01188, allocations: 107.7 kB / 393.1 MB, free: 4.133 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.01206, allocations: 176.3 kB / 393.2 MB, free: 3.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.01231, allocations: 232.9 kB / 393.5 MB, free: 3.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01231, allocations: 0 / 393.5 MB, free: 3.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005185/0.01283, allocations: 387.4 kB / 393.8 MB, free: 3.293 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.01285, allocations: 11.94 kB / 393.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.01285, allocations: 0 / 393.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002942/0.01315, allocations: 169 kB / 394 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.01327, allocations: 51.91 kB / 394.1 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004664/0.01373, allocations: 0.6734 MB / 394.7 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.01387, allocations: 39.95 kB / 394.8 MB, free: 2.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.01389, allocations: 11.94 kB / 394.8 MB, free: 2.312 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.0001172/0.01401, allocations: 156.8 kB / 395 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.01404, allocations: 19.86 kB / 395 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.01409, allocations: 34.28 kB / 395 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.01409, allocations: 0 / 395 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.0141, allocations: 7.984 kB / 395 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.0141, allocations: 0 / 395 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009497/0.01505, allocations: 0.7265 MB / 395.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.01506, allocations: 4 kB / 395.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.01517, allocations: 39.91 kB / 395.8 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/0.01539, allocations: 156.9 kB / 395.9 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.0154, allocations: 7.984 kB / 395.9 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004133/0.01582, allocations: 0.6694 MB / 396.6 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01582, allocations: 0 / 396.6 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.01644, allocations: 0.5327 MB / 397.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-05/0.01652, allocations: 51.81 kB / 397.2 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.01655, allocations: 8 kB / 397.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.01666, allocations: 19.98 kB / 397.2 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.542e-05/0.01674, allocations: 43.91 kB / 397.3 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.01676, allocations: 11.98 kB / 397.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.01687, allocations: 173.2 kB / 397.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01687, allocations: 0 / 397.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002377/0.01711, allocations: 64 kB / 397.5 MB, free: 15.49 MB / 330.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.0009643/0.01807, allocations: 386.1 kB / 397.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.01852, allocations: 276 kB / 398.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.01852, allocations: 0 / 398.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.0187, allocations: 134 kB / 398.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.01901, allocations: 48.45 kB / 398.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.02015, allocations: 0.7289 MB / 399.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.692e-05/0.02025, allocations: 150.1 kB / 399.2 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.0203, allocations: 32.48 kB / 399.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.0203, allocations: 0 / 399.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of Templates: time 0.00479/0.02509, allocations: 4.539 MB / 403.8 MB, free: 9.309 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: 4.999619859736413]