Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.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.0009525/0.0009525, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001705/0.001705, allocations: 173.4 kB / 24.06 MB, free: 452 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 1.004/1.004, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.008261/0.008261, allocations: 1.19 MB / 262.2 MB, free: 11.76 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.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") translateModel(ElectricBraking.Examples.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 3.984 kB / 332.4 MB, free: 18.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.563e-05/2.791e-05, allocations: 8.984 kB / 332.4 MB, free: 18.01 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003492/0.003519, allocations: 4.028 MB / 336.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.005075, allocations: 1.347 MB / 337.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002513/0.005326, allocations: 11.94 kB / 337.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005659/0.005892, allocations: 194.6 kB / 337.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.006204, allocations: 202.3 kB / 338.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.006371, allocations: 111.8 kB / 338.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.006802, allocations: 0.6257 MB / 338.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.007036, allocations: 168 kB / 339 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004368/0.007472, allocations: 359.2 kB / 339.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.007671, allocations: 191.4 kB / 339.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.215e-05/0.007713, allocations: 52 kB / 339.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.854e-05/0.007812, allocations: 67.98 kB / 339.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.883e-05/0.00786, allocations: 123.5 kB / 339.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.007963, allocations: 195.5 kB / 340 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.008359, allocations: 398.5 kB / 340.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.008363, allocations: 0 / 340.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.008364, allocations: 0 / 340.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.008371, allocations: 4 kB / 340.4 MB, free: 9.938 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.0007937/0.009165, allocations: 0.8346 MB / 341.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.009198, allocations: 8.031 kB / 341.2 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.00938, allocations: 116.5 kB / 341.4 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.009668, allocations: 299.2 kB / 341.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.009695, allocations: 33.38 kB / 341.7 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.023e-05/0.009775, allocations: 52.55 kB / 341.7 MB, free: 8.535 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.01008, allocations: 391.8 kB / 342.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.0101, allocations: 12.12 kB / 342.1 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.01012, allocations: 20.12 kB / 342.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.01013, allocations: 19.94 kB / 342.2 MB, free: 8.066 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.01027, allocations: 138.8 kB / 342.3 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.01143, allocations: 1.521 MB / 343.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.01163, allocations: 162.9 kB / 344 MB, free: 6.172 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.018e-05/0.01168, allocations: 55.64 kB / 344 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.0117, allocations: 7.938 kB / 344 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.01171, allocations: 41.39 kB / 344.1 MB, free: 6.055 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.643e-06/0.01172, allocations: 0 / 344.1 MB, free: 6.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0003407/0.01206, allocations: 220 kB / 344.3 MB, free: 5.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.625e-05/0.01207, allocations: 55.41 kB / 344.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.01223, allocations: 354 kB / 344.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.01225, allocations: 29.7 kB / 344.7 MB, free: 5.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.539e-05/0.01234, allocations: 318.9 kB / 345 MB, free: 5.047 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.01238, allocations: 87.23 kB / 345.1 MB, free: 4.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.01243, allocations: 71.31 kB / 345.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.01249, allocations: 0.5157 MB / 345.7 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.651e-05/0.01253, allocations: 27.97 kB / 345.7 MB, free: 4.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.16e-05/0.0126, allocations: 179.7 kB / 345.9 MB, free: 4.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.01273, allocations: 238.8 kB / 346.1 MB, free: 3.801 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.01273, allocations: 0 / 346.1 MB, free: 3.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002368/0.01297, allocations: 259.1 kB / 346.4 MB, free: 3.539 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.01298, allocations: 8.391 kB / 346.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.01299, allocations: 8 kB / 346.4 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-05/0.01309, allocations: 19.69 kB / 346.4 MB, free: 3.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.01322, allocations: 71.91 kB / 346.5 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000507/0.01373, allocations: 1.717 MB / 348.2 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.01383, allocations: 27.8 kB / 348.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.01385, allocations: 16.12 kB / 348.3 MB, free: 1.551 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.05e-05/0.01394, allocations: 180.4 kB / 348.4 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.893e-05/0.01397, allocations: 39.81 kB / 348.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.01401, allocations: 34.45 kB / 348.5 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.01401, allocations: 7.938 kB / 348.5 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01401, allocations: 3.984 kB / 348.5 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01401, allocations: 0 / 348.5 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.01442, allocations: 0.5297 MB / 349.1 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.01443, allocations: 8 kB / 349.1 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.01456, allocations: 47.92 kB / 349.1 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-05/0.01461, allocations: 27.61 kB / 349.1 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.01462, allocations: 4 kB / 349.1 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005865/0.0152, allocations: 1.717 MB / 350.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.0152, allocations: 4.125 kB / 350.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.01548, allocations: 369.2 kB / 351.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-05/0.01555, allocations: 59.67 kB / 351.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.01557, allocations: 4 kB / 351.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.343e-05/0.01567, allocations: 12 kB / 351.3 MB, free: 14.33 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.0157, allocations: 19.97 kB / 351.3 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.01571, allocations: 11.86 kB / 351.3 MB, free: 14.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001267/0.01584, allocations: 230.9 kB / 351.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.01584, allocations: 0 / 351.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000287/0.01613, allocations: 119.7 kB / 351.7 MB, free: 13.96 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.phi,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.352e-05/0.01622, allocations: 99.25 kB / 351.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003019/0.01652, allocations: 309.9 kB / 352.1 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01653, allocations: 0.8125 kB / 352.1 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.01666, allocations: 241.4 kB / 352.3 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.01697, allocations: 68 kB / 352.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.01819, allocations: 0.8826 MB / 353.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.029e-05/0.01825, allocations: 108.6 kB / 353.4 MB, free: 12.16 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.202e-05/0.01834, allocations: 34.95 kB / 353.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.01848, allocations: 138.2 kB / 353.5 MB, free: 11.98 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01848, allocations: 0 / 353.5 MB, free: 11.98 MB / 282.7 MB Notification: Performance of Templates: time 0.006274/0.02476, allocations: 3.871 MB / 357.4 MB, free: 8.203 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.012177153956145]