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.001864/0.001864, allocations: 84.44 kB / 19.17 MB, free: 0.7383 MB / 13.93 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.002451/0.002451, allocations: 165.9 kB / 22.45 MB, free: 2.105 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 1.637/1.637, allocations: 177.1 MB / 202.7 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 178] 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.01372/0.01372, allocations: 1.193 MB / 260.4 MB, free: 12.11 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.502e-06/1.502e-06, allocations: 0 / 383.5 MB, free: 13.17 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/2.932e-05, allocations: 6.281 kB / 383.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.005665/0.005694, allocations: 2.331 MB / 385.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.007965, allocations: 0.904 MB / 386.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.008118, allocations: 7.938 kB / 386.8 MB, free: 9.895 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004993/0.008617, allocations: 87.34 kB / 386.9 MB, free: 9.809 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.009015, allocations: 111.2 kB / 387 MB, free: 9.699 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.009325, allocations: 103.7 kB / 387.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006276/0.009953, allocations: 371.3 kB / 387.4 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.01013, allocations: 43.91 kB / 387.5 MB, free: 9.191 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005365/0.01067, allocations: 211.5 kB / 387.7 MB, free: 8.984 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003302/0.011, allocations: 127.7 kB / 387.8 MB, free: 8.859 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.648e-05/0.01107, allocations: 24 kB / 387.8 MB, free: 8.836 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.0113, allocations: 83.84 kB / 387.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.01146, allocations: 75.73 kB / 388 MB, free: 8.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.01165, allocations: 95.8 kB / 388.1 MB, free: 8.586 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007284/0.01238, allocations: 378.8 kB / 388.5 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.01238, allocations: 0 / 388.5 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01238, allocations: 4 kB / 388.5 MB, free: 8.211 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.01239, allocations: 0 / 388.5 MB, free: 8.211 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001423/0.01381, allocations: 0.5167 MB / 389 MB, free: 7.664 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.01386, allocations: 8.031 kB / 389 MB, free: 7.656 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.01397, allocations: 28.8 kB / 389 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.0145, allocations: 226.1 kB / 389.2 MB, free: 7.383 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.01453, allocations: 12.88 kB / 389.2 MB, free: 7.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.713e-05/0.01461, allocations: 24.38 kB / 389.3 MB, free: 7.348 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007619/0.01538, allocations: 267.9 kB / 389.5 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.0154, allocations: 8.141 kB / 389.5 MB, free: 7.059 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.01544, allocations: 8.375 kB / 389.5 MB, free: 7.051 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.01546, allocations: 7.938 kB / 389.6 MB, free: 7.043 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007474/0.01621, allocations: 212.9 kB / 389.8 MB, free: 6.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002445/0.01865, allocations: 0.8897 MB / 390.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.01919, allocations: 165.6 kB / 390.8 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.01949, allocations: 100.9 kB / 390.9 MB, free: 5.621 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.01953, allocations: 4 kB / 390.9 MB, free: 5.617 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.01957, allocations: 34.56 kB / 390.9 MB, free: 5.574 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.613e-06/0.01958, allocations: 0 / 390.9 MB, free: 5.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.002544/0.02212, allocations: 493.2 kB / 391.4 MB, free: 5.086 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.02218, allocations: 51.41 kB / 391.5 MB, free: 5.023 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.02252, allocations: 235.1 kB / 391.7 MB, free: 4.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.605e-05/0.02257, allocations: 41.69 kB / 391.7 MB, free: 4.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.02274, allocations: 148.4 kB / 391.9 MB, free: 4.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.02288, allocations: 79.36 kB / 392 MB, free: 4.512 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.02303, allocations: 57.94 kB / 392 MB, free: 4.445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002556/0.02328, allocations: 330.8 kB / 392.4 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.02355, allocations: 96.52 kB / 392.4 MB, free: 4.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.02388, allocations: 165.5 kB / 392.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.02432, allocations: 216.1 kB / 392.8 MB, free: 3.594 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.02432, allocations: 0 / 392.8 MB, free: 3.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008456/0.02517, allocations: 354.1 kB / 393.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.02519, allocations: 8 kB / 393.2 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.0252, allocations: 0 / 393.2 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004806/0.02568, allocations: 176.9 kB / 393.3 MB, free: 3.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.02585, allocations: 39.92 kB / 393.4 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008193/0.02667, allocations: 0.6811 MB / 394.1 MB, free: 2.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.02695, allocations: 51.8 kB / 394.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.02698, allocations: 19.88 kB / 394.1 MB, free: 2.238 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 (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.0001737/0.02715, allocations: 129.8 kB / 394.3 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.333e-05/0.02722, allocations: 31.86 kB / 394.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.141e-05/0.02731, allocations: 33.95 kB / 394.3 MB, free: 2.035 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.02732, allocations: 4 kB / 394.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.02732, allocations: 0 / 394.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.02733, allocations: 0 / 394.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.02859, allocations: 0.6043 MB / 394.9 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.0286, allocations: 3.984 kB / 394.9 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.02876, allocations: 31.98 kB / 395 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003505/0.02911, allocations: 156.8 kB / 395.1 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.02914, allocations: 7.984 kB / 395.1 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007597/0.0299, allocations: 0.6655 MB / 395.8 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.0299, allocations: 0 / 395.8 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.03089, allocations: 491.5 kB / 396.3 MB, free: 0 / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.03103, allocations: 51.8 kB / 396.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/0.03107, allocations: 8 kB / 396.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.03134, allocations: 31.95 kB / 396.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.03147, allocations: 48.08 kB / 396.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.03149, allocations: 11.92 kB / 396.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001973/0.03168, allocations: 168.5 kB / 396.6 MB, free: 15.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03168, allocations: 0 / 396.6 MB, free: 15.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003634/0.03205, allocations: 67.89 kB / 396.7 MB, free: 15.62 MB / 330.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.002419/0.03447, allocations: 398.8 kB / 397 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006626/0.03513, allocations: 231.8 kB / 397.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.03513, allocations: 0 / 397.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.03542, allocations: 116.4 kB / 397.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.03586, allocations: 55 kB / 397.4 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.03887, allocations: 0.8607 MB / 398.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.03904, allocations: 134.2 kB / 398.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.03915, allocations: 25.94 kB / 398.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.358e-05/0.03921, allocations: 20.5 kB / 398.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of SimCode: time 7.01e-07/0.03922, allocations: 0 / 398.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of Templates: time 0.01002/0.04923, allocations: 4.432 MB / 402.9 MB, free: 9.504 MB / 330.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: 5.350977980066091]