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.0009196/0.0009196, allocations: 80.94 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.0008991/0.0008991, 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.9158/0.9158, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.01294/0.01294, allocations: 1.2 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.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.583e-06/1.583e-06, allocations: 3.938 kB / 278.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.411e-05/2.569e-05, allocations: 2.312 kB / 278.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.004102/0.004128, allocations: 2.443 MB / 280.8 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.005727, allocations: 0.9465 MB / 281.7 MB, free: 7.496 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.005851, allocations: 7.938 kB / 281.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003947/0.006246, allocations: 87.33 kB / 281.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002781/0.006524, allocations: 115.1 kB / 281.9 MB, free: 7.289 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.006758, allocations: 111.7 kB / 282 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.007132, allocations: 363.3 kB / 282.4 MB, free: 6.824 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.007275, allocations: 39.2 kB / 282.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000382/0.007657, allocations: 219.4 kB / 282.6 MB, free: 6.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.007883, allocations: 131.6 kB / 282.8 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.007932, allocations: 32 kB / 282.8 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.008072, allocations: 79.92 kB / 282.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.008184, allocations: 75.72 kB / 282.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.008288, allocations: 95.75 kB / 283 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.008676, allocations: 279 kB / 283.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.008679, allocations: 0 / 283.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.008681, allocations: 0 / 283.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.008685, allocations: 0 / 283.3 MB, free: 5.891 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.0007149/0.0094, allocations: 499.8 kB / 283.8 MB, free: 5.379 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.009437, allocations: 12.03 kB / 283.8 MB, free: 5.367 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.688e-05/0.009503, allocations: 32.91 kB / 283.8 MB, free: 5.336 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.009777, allocations: 198.9 kB / 284 MB, free: 5.113 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.009801, allocations: 16.88 kB / 284.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.009847, allocations: 24.33 kB / 284.1 MB, free: 5.074 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.01017, allocations: 215.8 kB / 284.3 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.01019, allocations: 4.188 kB / 284.3 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.01021, allocations: 4.375 kB / 284.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.01022, allocations: 11.94 kB / 284.3 MB, free: 4.824 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.01042, allocations: 105.4 kB / 284.4 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.01153, allocations: 0.7042 MB / 285.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.01174, allocations: 102.4 kB / 285.2 MB, free: 3.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.52e-05/0.01181, allocations: 44.84 kB / 285.3 MB, free: 3.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.01184, allocations: 4 kB / 285.3 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.01186, allocations: 30.56 kB / 285.3 MB, free: 3.777 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.01186, allocations: 3.938 kB / 285.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009601/0.01282, allocations: 321.6 kB / 285.6 MB, free: 3.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.01285, allocations: 55.41 kB / 285.7 MB, free: 3.387 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.01304, allocations: 215.8 kB / 285.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.01307, allocations: 33.7 kB / 285.9 MB, free: 3.121 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.01315, allocations: 136.4 kB / 286 MB, free: 2.984 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.01321, allocations: 83.34 kB / 286.1 MB, free: 2.902 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.081e-05/0.0133, allocations: 57.94 kB / 286.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.622e-05/0.0134, allocations: 330.8 kB / 286.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.574e-05/0.01349, allocations: 40.55 kB / 286.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.01361, allocations: 105.6 kB / 286.6 MB, free: 2.336 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.01379, allocations: 153 kB / 286.8 MB, free: 2.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.01379, allocations: 0 / 286.8 MB, free: 2.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003829/0.01417, allocations: 218.7 kB / 287 MB, free: 1.938 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.01419, allocations: 7.125 kB / 287 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.0142, allocations: 4 kB / 287 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.01457, allocations: 129 kB / 287.1 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.0147, allocations: 35.92 kB / 287.2 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004094/0.01511, allocations: 0.5813 MB / 287.8 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.01528, allocations: 51.78 kB / 287.8 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.0153, allocations: 4 kB / 287.8 MB, free: 1.102 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 0.000108/0.01541, allocations: 128.6 kB / 287.9 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.01547, allocations: 23.92 kB / 288 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.032e-05/0.01552, allocations: 29.95 kB / 288 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01552, allocations: 0 / 288 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.01552, allocations: 4 kB / 288 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.01553, allocations: 7.922 kB / 288 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.01624, allocations: 415.5 kB / 288.4 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.01624, allocations: 0 / 288.4 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.01637, allocations: 23.98 kB / 288.4 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002336/0.0166, allocations: 116.8 kB / 288.5 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.01662, allocations: 11.98 kB / 288.6 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1104/0.1271, allocations: 0.5752 MB / 289.1 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1271, allocations: 2.344 kB / 289.1 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.1275, allocations: 323.3 kB / 289.5 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.157e-05/0.1276, allocations: 30.16 kB / 289.5 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/0.1276, allocations: 10.09 kB / 289.5 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1277, allocations: 23.45 kB / 289.5 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.662e-05/0.1278, allocations: 45.02 kB / 289.6 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1278, allocations: 10.55 kB / 289.6 MB, free: 24.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.282e-05/0.1279, allocations: 64.36 kB / 289.6 MB, free: 24.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1279, allocations: 0 / 289.6 MB, free: 24.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002435/0.1282, allocations: 71.44 kB / 289.7 MB, free: 24.28 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.0009246/0.1291, allocations: 455.5 kB / 290.1 MB, free: 24.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003129/0.1294, allocations: 144.5 kB / 290.3 MB, free: 24.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.1294, allocations: 5.312 kB / 290.3 MB, free: 24.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.1295, allocations: 90.44 kB / 290.4 MB, free: 24.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.1298, allocations: 55.88 kB / 290.4 MB, free: 24.17 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.1312, allocations: 0.7461 MB / 291.2 MB, free: 23.9 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.355e-05/0.1313, allocations: 83.39 kB / 291.3 MB, free: 23.83 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.356e-05/0.1313, allocations: 21.8 kB / 291.3 MB, free: 23.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.688e-05/0.1314, allocations: 88.94 kB / 291.4 MB, free: 23.78 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1314, allocations: 0 / 291.4 MB, free: 23.78 MB / 266.7 MB Notification: Performance of Templates: time 0.007464/0.1389, allocations: 4.839 MB / 296.2 MB, free: 23.09 MB / 266.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.731327892281115]