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.001118/0.001118, allocations: 73.09 kB / 20.65 MB, free: 3.848 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.001395/0.001395, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9644/0.9644, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.005134/0.005134, allocations: 1.194 MB / 262.2 MB, free: 11.74 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.132e-06/1.132e-06, allocations: 0 / 331.5 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.967e-06/1.01e-05, allocations: 6.312 kB / 331.5 MB, free: 18.82 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.002105/0.002116, allocations: 2.447 MB / 334 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008963/0.003012, allocations: 0.9234 MB / 334.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.456e-05/0.003106, allocations: 7.938 kB / 334.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002765/0.003383, allocations: 79.41 kB / 335 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.00356, allocations: 119.1 kB / 335.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.0037, allocations: 103.7 kB / 335.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002001/0.0039, allocations: 367.3 kB / 335.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.019e-05/0.00399, allocations: 40.2 kB / 335.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.004205, allocations: 211.5 kB / 335.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.004334, allocations: 139.6 kB / 336 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.004363, allocations: 24 kB / 336 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.179e-05/0.004455, allocations: 75.92 kB / 336.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.845e-05/0.004524, allocations: 75.73 kB / 336.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.394e-05/0.004577, allocations: 91.75 kB / 336.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.004794, allocations: 286.9 kB / 336.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.283e-06/0.004795, allocations: 0 / 336.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.9e-07/0.004796, allocations: 4 kB / 336.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.735e-06/0.004798, allocations: 0 / 336.5 MB, free: 13.83 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.0004328/0.005231, allocations: 0.6166 MB / 337.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.128e-05/0.005252, allocations: 8.031 kB / 337.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.199e-05/0.005304, allocations: 40.8 kB / 337.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.005468, allocations: 233.8 kB / 337.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.005485, allocations: 12.88 kB / 337.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.005512, allocations: 28.36 kB / 337.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.00571, allocations: 216.3 kB / 337.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.005721, allocations: 4.188 kB / 337.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.005737, allocations: 12.36 kB / 337.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.005742, allocations: 7.938 kB / 337.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.005939, allocations: 113.5 kB / 337.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007701/0.006709, allocations: 0.9527 MB / 338.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.006853, allocations: 127 kB / 338.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.23e-05/0.006905, allocations: 55.66 kB / 338.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.006926, allocations: 8 kB / 338.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.221e-05/0.006938, allocations: 33.39 kB / 339 MB, free: 11.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.006939, allocations: 0 / 339 MB, free: 11.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006627/0.007602, allocations: 364.1 kB / 339.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.43e-05/0.007616, allocations: 51.41 kB / 339.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.007719, allocations: 273.4 kB / 339.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.007736, allocations: 37.7 kB / 339.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.007784, allocations: 195.1 kB / 339.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/0.007818, allocations: 75.41 kB / 339.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.497e-05/0.007873, allocations: 71.55 kB / 340 MB, free: 10.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.182e-05/0.007915, allocations: 0.4962 MB / 340.5 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.846e-05/0.007973, allocations: 48.52 kB / 340.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.288e-05/0.008046, allocations: 139 kB / 340.7 MB, free: 9.375 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.008162, allocations: 183.6 kB / 340.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.008164, allocations: 0 / 340.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002956/0.00846, allocations: 261.6 kB / 341.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.00847, allocations: 8 kB / 341.1 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.008475, allocations: 4 kB / 341.1 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002003/0.008676, allocations: 127.6 kB / 341.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.863e-05/0.008764, allocations: 39.98 kB / 341.3 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002914/0.009056, allocations: 0.8661 MB / 342.2 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.009164, allocations: 39.81 kB / 342.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.009179, allocations: 8 kB / 342.2 MB, free: 7.77 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 8.407e-05/0.009263, allocations: 168.6 kB / 342.4 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.009311, allocations: 31.86 kB / 342.4 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.285e-05/0.009353, allocations: 37.92 kB / 342.4 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.009356, allocations: 4 kB / 342.4 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.009359, allocations: 3.938 kB / 342.4 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.009364, allocations: 0 / 342.4 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005063/0.00987, allocations: 0.5396 MB / 343 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.009872, allocations: 0 / 343 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.49e-05/0.009957, allocations: 35.98 kB / 343 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001601/0.01012, allocations: 123.6 kB / 343.1 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.01013, allocations: 7.984 kB / 343.1 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002422/0.01037, allocations: 0.8701 MB / 344 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.01037, allocations: 4.031 kB / 344 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.0107, allocations: 419.9 kB / 344.4 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.01076, allocations: 51.75 kB / 344.5 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.01078, allocations: 8 kB / 344.5 MB, free: 5.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.649e-05/0.01088, allocations: 23.97 kB / 344.5 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.01095, allocations: 43.91 kB / 344.6 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-06/0.01095, allocations: 4 kB / 344.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.457e-05/0.01101, allocations: 180.6 kB / 344.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01101, allocations: 0 / 344.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002019/0.01121, allocations: 67.89 kB / 344.8 MB, free: 5.062 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.0006088/0.01182, allocations: 344.7 kB / 345.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.01203, allocations: 172.6 kB / 345.3 MB, free: 4.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.51e-07/0.01203, allocations: 0 / 345.3 MB, free: 4.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.101e-05/0.01212, allocations: 95.53 kB / 345.4 MB, free: 4.566 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.01235, allocations: 52.02 kB / 345.5 MB, free: 4.516 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.01358, allocations: 0.8111 MB / 346.3 MB, free: 3.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.111e-05/0.01364, allocations: 142.2 kB / 346.4 MB, free: 3.516 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.788e-05/0.01373, allocations: 110.2 kB / 346.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01373, allocations: 0 / 346.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of Templates: time 0.003399/0.01713, allocations: 4.291 MB / 350.8 MB, free: 15.12 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 & ./ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7546500749886036]