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.001228/0.001228, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 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.001447/0.001447, allocations: 169 kB / 23.02 MB, free: 1.551 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.039/1.039, allocations: 177.1 MB / 203.4 MB, free: 5.645 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.005107/0.005107, allocations: 1.198 MB / 261.1 MB, free: 11.91 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.562e-06/1.562e-06, allocations: 0 / 331.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.674e-05/2.83e-05, allocations: 2.312 kB / 331.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.002509/0.002537, allocations: 2.5 MB / 333.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.00371, allocations: 0.9467 MB / 334.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.003851, allocations: 8 kB / 334.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003594/0.004211, allocations: 83.34 kB / 334.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002384/0.004449, allocations: 123 kB / 334.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.004646, allocations: 103.8 kB / 334.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002745/0.004921, allocations: 383.2 kB / 335.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.005043, allocations: 37.25 kB / 335.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.005331, allocations: 219.5 kB / 335.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.005507, allocations: 135.6 kB / 335.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.005542, allocations: 24 kB / 335.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.005657, allocations: 83.86 kB / 335.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.36e-05/0.005751, allocations: 75.72 kB / 335.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.299e-05/0.005824, allocations: 103.7 kB / 335.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.006138, allocations: 283 kB / 336.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.006144, allocations: 4 kB / 336.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.006145, allocations: 7.938 kB / 336.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.006151, allocations: 0 / 336.2 MB, free: 13.17 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.0006432/0.006794, allocations: 0.6166 MB / 336.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.006834, allocations: 11.97 kB / 336.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.006911, allocations: 48.75 kB / 336.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.007144, allocations: 240.8 kB / 337.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.007166, allocations: 16.88 kB / 337.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.0072, allocations: 20.38 kB / 337.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.007495, allocations: 248.5 kB / 337.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.007505, allocations: 192 / 337.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.007525, allocations: 4.375 kB / 337.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.007534, allocations: 11.94 kB / 337.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.007743, allocations: 153.3 kB / 337.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007934/0.008536, allocations: 0.9195 MB / 338.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.008754, allocations: 150.9 kB / 338.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.32e-05/0.008837, allocations: 67.75 kB / 338.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.008856, allocations: 4 kB / 338.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.008872, allocations: 37.39 kB / 338.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.008873, allocations: 0 / 338.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.001288/0.01016, allocations: 0.8372 MB / 339.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.074e-05/0.01018, allocations: 59.34 kB / 339.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.01034, allocations: 276.3 kB / 339.9 MB, free: 9.215 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.01036, allocations: 37.69 kB / 340 MB, free: 9.172 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.442e-05/0.01042, allocations: 199.5 kB / 340.1 MB, free: 8.973 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/0.01047, allocations: 103.3 kB / 340.2 MB, free: 8.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.01054, allocations: 67.3 kB / 340.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.181e-05/0.0106, allocations: 0.504 MB / 340.8 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.0107, allocations: 63.97 kB / 340.9 MB, free: 8.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.01082, allocations: 161.4 kB / 341 MB, free: 8.023 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.011, allocations: 207.7 kB / 341.2 MB, free: 7.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.011, allocations: 8 kB / 341.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004295/0.01143, allocations: 310.2 kB / 341.6 MB, free: 7.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.01145, allocations: 4 kB / 341.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.01145, allocations: 4 kB / 341.6 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/0.01173, allocations: 139.8 kB / 341.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.01184, allocations: 43.98 kB / 341.7 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003416/0.01219, allocations: 0.8701 MB / 342.6 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.0123, allocations: 32 kB / 342.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.01232, allocations: 15.94 kB / 342.7 MB, free: 6.324 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 8.173e-05/0.0124, allocations: 176.5 kB / 342.8 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.01244, allocations: 31.86 kB / 342.9 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.01248, allocations: 30.28 kB / 342.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.01249, allocations: 4 kB / 342.9 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.01249, allocations: 0 / 342.9 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.01249, allocations: 3.984 kB / 342.9 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000735/0.01323, allocations: 0.6873 MB / 343.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01323, allocations: 0 / 343.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.01334, allocations: 35.98 kB / 343.6 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001778/0.01351, allocations: 143.6 kB / 343.8 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.01353, allocations: 15.97 kB / 343.8 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002777/0.01381, allocations: 0.8663 MB / 344.6 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.01381, allocations: 0 / 344.6 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004329/0.01424, allocations: 495.6 kB / 345.1 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.735e-05/0.01431, allocations: 47.75 kB / 345.2 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.01435, allocations: 15.94 kB / 345.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.01443, allocations: 15.98 kB / 345.2 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.896e-05/0.01451, allocations: 43.91 kB / 345.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.01452, allocations: 11.98 kB / 345.3 MB, free: 3.586 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.915e-05/0.0146, allocations: 201.1 kB / 345.5 MB, free: 3.391 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0146, allocations: 0 / 345.5 MB, free: 3.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002206/0.01482, allocations: 67.94 kB / 345.5 MB, free: 3.324 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.0007263/0.01555, allocations: 350.9 kB / 345.9 MB, free: 3.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.01592, allocations: 216.9 kB / 346.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01592, allocations: 0 / 346.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.01605, allocations: 119 kB / 346.2 MB, free: 2.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.01634, allocations: 55.11 kB / 346.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.01753, allocations: 0.6815 MB / 346.9 MB, free: 1.984 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.342e-05/0.01758, allocations: 96 kB / 347 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.049e-05/0.01764, allocations: 30.27 kB / 347 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.237e-05/0.01769, allocations: 24.5 kB / 347.1 MB, free: 1.82 MB / 266.7 MB Notification: Performance of SimCode: time 1.413e-06/0.01769, allocations: 4 kB / 347.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of Templates: time 0.006824/0.02452, allocations: 4.949 MB / 352 MB, free: 12.92 MB / 282.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.9499863400124013]