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.0009621/0.0009621, allocations: 77.14 kB / 19.87 MB, free: 4.621 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.0009589/0.0009589, allocations: 173 kB / 23.28 MB, free: 1.219 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.9591/0.9591, allocations: 177.1 MB / 203.7 MB, free: 5.488 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.008042/0.008042, allocations: 1.192 MB / 261.4 MB, free: 11.73 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.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: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 331.6 MB, free: 18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097e-05/1.219e-05, allocations: 2.312 kB / 331.6 MB, free: 18 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.002214/0.002226, allocations: 2.442 MB / 334 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008674/0.003093, allocations: 0.9234 MB / 334.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.91e-05/0.003192, allocations: 7.938 kB / 335 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003471/0.003539, allocations: 83.34 kB / 335 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.003764, allocations: 111.1 kB / 335.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001442/0.003908, allocations: 111.8 kB / 335.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.004109, allocations: 363.3 kB / 335.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.349e-05/0.004203, allocations: 41.23 kB / 335.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.004413, allocations: 211.5 kB / 335.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.004547, allocations: 127.7 kB / 336 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.004577, allocations: 28 kB / 336 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.371e-05/0.004671, allocations: 87.8 kB / 336.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.8e-05/0.004739, allocations: 71.72 kB / 336.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.557e-05/0.004795, allocations: 95.8 kB / 336.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.005021, allocations: 283 kB / 336.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.005022, allocations: 4 kB / 336.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.005023, allocations: 0 / 336.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.005027, allocations: 0 / 336.5 MB, free: 13.02 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0005208/0.005548, allocations: 0.6127 MB / 337.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.604e-05/0.005574, allocations: 8.031 kB / 337.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.357e-05/0.005637, allocations: 40.8 kB / 337.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.005816, allocations: 241.7 kB / 337.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.005833, allocations: 12.88 kB / 337.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.005862, allocations: 28.31 kB / 337.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.006063, allocations: 212.3 kB / 337.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.006074, allocations: 192 / 337.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.006091, allocations: 12.38 kB / 337.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.006097, allocations: 7.938 kB / 337.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.006232, allocations: 121.4 kB / 337.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007229/0.006955, allocations: 0.9527 MB / 338.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.0071, allocations: 119.1 kB / 338.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.186e-05/0.007152, allocations: 51.67 kB / 338.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.007175, allocations: 4 kB / 338.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.169e-05/0.007186, allocations: 49.31 kB / 339 MB, free: 10.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.122e-06/0.007187, allocations: 0 / 339 MB, free: 10.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000694/0.007881, allocations: 356.1 kB / 339.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.324e-05/0.007895, allocations: 51.41 kB / 339.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.008, allocations: 273.5 kB / 339.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.008016, allocations: 29.7 kB / 339.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.78e-05/0.008064, allocations: 203.1 kB / 339.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.315e-05/0.008097, allocations: 79.39 kB / 340 MB, free: 9.371 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.008154, allocations: 59.58 kB / 340 MB, free: 9.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.411e-05/0.008198, allocations: 0.5079 MB / 340.5 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.889e-05/0.008257, allocations: 44.53 kB / 340.6 MB, free: 8.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.112e-05/0.008328, allocations: 143 kB / 340.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.008438, allocations: 183.6 kB / 340.9 MB, free: 8.348 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.008441, allocations: 0 / 340.9 MB, free: 8.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002831/0.008724, allocations: 249.7 kB / 341.1 MB, free: 8.094 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.008735, allocations: 8 kB / 341.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.00874, allocations: 0 / 341.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.008937, allocations: 143.7 kB / 341.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.262e-05/0.00902, allocations: 39.92 kB / 341.3 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002671/0.009287, allocations: 0.8585 MB / 342.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.009392, allocations: 35.83 kB / 342.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.009405, allocations: 11.98 kB / 342.2 MB, free: 6.965 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 (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 6.74e-05/0.009473, allocations: 172.5 kB / 342.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.009516, allocations: 35.89 kB / 342.4 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.009553, allocations: 33.89 kB / 342.5 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.009555, allocations: 3.938 kB / 342.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.009558, allocations: 4 kB / 342.5 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.009561, allocations: 0 / 342.5 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.01004, allocations: 0.5397 MB / 343 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01004, allocations: 0 / 343 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.922e-05/0.01012, allocations: 27.98 kB / 343 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001505/0.01027, allocations: 127.6 kB / 343.2 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.01029, allocations: 8 kB / 343.2 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003601/0.01065, allocations: 0.874 MB / 344 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.01065, allocations: 0 / 344 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003357/0.01099, allocations: 419.9 kB / 344.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.656e-05/0.01104, allocations: 47.75 kB / 344.5 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.01107, allocations: 8 kB / 344.5 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.01117, allocations: 24 kB / 344.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.01123, allocations: 43.92 kB / 344.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.01124, allocations: 7.984 kB / 344.6 MB, free: 4.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.32e-05/0.0113, allocations: 184.6 kB / 344.8 MB, free: 4.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0113, allocations: 0 / 344.8 MB, free: 4.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002182/0.01152, allocations: 67.89 kB / 344.8 MB, free: 4.254 MB / 266.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.0005874/0.0121, allocations: 347.6 kB / 345.2 MB, free: 4.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002217/0.01232, allocations: 168.5 kB / 345.3 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.01233, allocations: 3.938 kB / 345.3 MB, free: 3.852 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.92e-05/0.01243, allocations: 91.59 kB / 345.4 MB, free: 3.762 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.01267, allocations: 60.12 kB / 345.5 MB, free: 3.703 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.01394, allocations: 0.7821 MB / 346.3 MB, free: 2.895 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.207e-05/0.01397, allocations: 80.33 kB / 346.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.152e-05/0.01402, allocations: 29.92 kB / 346.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.537e-05/0.01411, allocations: 106.2 kB / 346.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01411, allocations: 0 / 346.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of Templates: time 0.005637/0.01974, allocations: 4.858 MB / 351.3 MB, free: 13.86 MB / 282.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 & (cd run_cvode && ../ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_gbode.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_gbode.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_gbode.sim & (cd run_gbode && ../ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_gbode.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_ida.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_ida.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_ida.sim & (cd run_ida && ../ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.978171964175999]