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.0008843/0.0008843, allocations: 80.81 kB / 19.94 MB, free: 4.543 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.0009269/0.0009269, allocations: 177 kB / 23.36 MB, free: 1.129 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.9045/0.9045, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.00483/0.00483, allocations: 1.208 MB / 261.5 MB, free: 11.77 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.532e-06/1.532e-06, allocations: 3.938 kB / 278.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.593e-05/1.746e-05, allocations: 6.312 kB / 278.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.002717/0.002734, allocations: 2.49 MB / 280.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.003845, allocations: 0.9621 MB / 281.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.00395, allocations: 3.938 kB / 281.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.004257, allocations: 83.34 kB / 281.9 MB, free: 7.348 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.004451, allocations: 127 kB / 282 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001521/0.004603, allocations: 103.8 kB / 282.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002832/0.004887, allocations: 367.3 kB / 282.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.005001, allocations: 51.12 kB / 282.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.005269, allocations: 223.5 kB / 282.7 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.005456, allocations: 131.7 kB / 282.8 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.005492, allocations: 28 kB / 282.9 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.005596, allocations: 87.89 kB / 283 MB, free: 6.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-05/0.005688, allocations: 71.75 kB / 283 MB, free: 6.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.674e-05/0.005765, allocations: 103.7 kB / 283.1 MB, free: 6.078 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.006053, allocations: 286.9 kB / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.006055, allocations: 0 / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.006055, allocations: 0 / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.616e-06/0.006059, allocations: 0 / 283.4 MB, free: 5.797 MB / 266.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.0008133/0.006872, allocations: 0.5074 MB / 283.9 MB, free: 5.266 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.006904, allocations: 8.031 kB / 283.9 MB, free: 5.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.006961, allocations: 32.91 kB / 284 MB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.007179, allocations: 198 kB / 284.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.007204, allocations: 16.88 kB / 284.2 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.007239, allocations: 24.38 kB / 284.2 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.007489, allocations: 228 kB / 284.4 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.007502, allocations: 4.141 kB / 284.4 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.007519, allocations: 8.375 kB / 284.4 MB, free: 4.715 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.007529, allocations: 11.94 kB / 284.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.007702, allocations: 97.42 kB / 284.5 MB, free: 4.605 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.008436, allocations: 0.6481 MB / 285.2 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.008601, allocations: 118.4 kB / 285.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.33e-05/0.008664, allocations: 48.84 kB / 285.3 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.008687, allocations: 11.88 kB / 285.4 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.008708, allocations: 34.56 kB / 285.4 MB, free: 3.691 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.182e-06/0.00871, allocations: 0 / 285.4 MB, free: 3.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.001092/0.009802, allocations: 0.6889 MB / 286.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.009833, allocations: 59.34 kB / 286.1 MB, free: 2.879 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.009971, allocations: 222.7 kB / 286.4 MB, free: 2.648 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.009996, allocations: 37.7 kB / 286.4 MB, free: 2.605 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.01005, allocations: 136.7 kB / 286.5 MB, free: 2.469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.0101, allocations: 91.19 kB / 286.6 MB, free: 2.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.728e-05/0.01017, allocations: 69.61 kB / 286.7 MB, free: 2.305 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.252e-05/0.01025, allocations: 334.8 kB / 287 MB, free: 1.969 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.113e-05/0.01032, allocations: 39.98 kB / 287 MB, free: 1.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.369e-05/0.01041, allocations: 119.7 kB / 287.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.01054, allocations: 159.7 kB / 287.3 MB, free: 1.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.01055, allocations: 4 kB / 287.3 MB, free: 1.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002863/0.01083, allocations: 231.6 kB / 287.5 MB, free: 1.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.01085, allocations: 7.938 kB / 287.6 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.01085, allocations: 4 kB / 287.6 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/0.01107, allocations: 125 kB / 287.7 MB, free: 1.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.01117, allocations: 43.92 kB / 287.7 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003214/0.01149, allocations: 0.5813 MB / 288.3 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.0116, allocations: 27.97 kB / 288.3 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.01161, allocations: 11.98 kB / 288.3 MB, free: 0.5352 MB / 266.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.406e-05/0.01171, allocations: 136.6 kB / 288.5 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.654e-05/0.01174, allocations: 23.98 kB / 288.5 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.01179, allocations: 34.27 kB / 288.5 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01179, allocations: 4 kB / 288.5 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.01179, allocations: 0 / 288.5 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.01179, allocations: 0 / 288.5 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.111/0.1228, allocations: 491.2 kB / 289 MB, free: 24.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.1228, allocations: 3.312 kB / 289 MB, free: 24.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.1229, allocations: 33.75 kB / 289.1 MB, free: 24.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.1231, allocations: 121.2 kB / 289.2 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.1231, allocations: 9.734 kB / 289.2 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002441/0.1234, allocations: 0.5823 MB / 289.8 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1234, allocations: 1.906 kB / 289.8 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.1237, allocations: 374 kB / 290.1 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.1238, allocations: 36.61 kB / 290.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.1239, allocations: 9.922 kB / 290.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.559e-05/0.124, allocations: 20.02 kB / 290.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.124, allocations: 45.36 kB / 290.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.1241, allocations: 8.75 kB / 290.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.02e-05/0.1241, allocations: 73.12 kB / 290.3 MB, free: 24.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1241, allocations: 1.094 kB / 290.3 MB, free: 24.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.1244, allocations: 63.55 kB / 290.4 MB, free: 24.14 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.0008546/0.1252, allocations: 455.5 kB / 290.8 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002834/0.1255, allocations: 166.2 kB / 291 MB, free: 24.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.1255, allocations: 2.469 kB / 291 MB, free: 24.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.1256, allocations: 96.62 kB / 291.1 MB, free: 24.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.1259, allocations: 63.83 kB / 291.1 MB, free: 24.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.1269, allocations: 0.6471 MB / 291.8 MB, free: 23.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.66e-05/0.127, allocations: 86.8 kB / 291.9 MB, free: 23.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.664e-05/0.1271, allocations: 31.62 kB / 291.9 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.993e-05/0.1272, allocations: 95.67 kB / 292 MB, free: 23.62 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1272, allocations: 0 / 292 MB, free: 23.62 MB / 266.7 MB Notification: Performance of Templates: time 0.006642/0.1338, allocations: 4.991 MB / 297 MB, free: 22.85 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.6807025927118957]