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.001143/0.001143, allocations: 77.88 kB / 20.66 MB, free: 3.84 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.001559/0.001559, allocations: 169 kB / 24.05 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.9675/0.9675, allocations: 177.1 MB / 204.5 MB, free: 5.156 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.005236/0.005236, allocations: 1.2 MB / 262.2 MB, free: 11.61 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 1.112e-06/1.112e-06, allocations: 0 / 331.5 MB, free: 18.83 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.558e-05/1.669e-05, allocations: 2.312 kB / 331.5 MB, free: 18.83 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003042/0.003058, allocations: 4.026 MB / 335.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.00445, allocations: 1.347 MB / 336.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.004662, allocations: 11.94 kB / 336.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000465/0.005127, allocations: 194.5 kB / 337.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.005343, allocations: 206.4 kB / 337.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.005471, allocations: 115.8 kB / 337.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.005799, allocations: 0.618 MB / 338.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.00599, allocations: 160.1 kB / 338.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003029/0.006293, allocations: 371 kB / 338.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.006458, allocations: 195.4 kB / 338.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.022e-05/0.006498, allocations: 52 kB / 338.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.231e-05/0.006591, allocations: 71.98 kB / 338.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.417e-05/0.006635, allocations: 115.5 kB / 339 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.939e-05/0.006734, allocations: 191.5 kB / 339.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.007077, allocations: 402.5 kB / 339.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.00708, allocations: 0 / 339.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.007081, allocations: 0 / 339.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.007086, allocations: 0 / 339.6 MB, free: 10.76 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.0006366/0.007723, allocations: 0.8385 MB / 340.4 MB, free: 9.883 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.773e-05/0.00775, allocations: 8.031 kB / 340.4 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.007903, allocations: 108.5 kB / 340.5 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.008141, allocations: 315.1 kB / 340.8 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.008164, allocations: 29.38 kB / 340.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.16e-05/0.008236, allocations: 52.55 kB / 340.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.008517, allocations: 395.8 kB / 341.3 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.008533, allocations: 8.078 kB / 341.3 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.008553, allocations: 24.12 kB / 341.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.008562, allocations: 12 kB / 341.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.008702, allocations: 138.8 kB / 341.5 MB, free: 8.746 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.009702, allocations: 1.517 MB / 343 MB, free: 7.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.009888, allocations: 166.8 kB / 343.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.765e-05/0.009936, allocations: 56.3 kB / 343.2 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.009945, allocations: 7.938 kB / 343.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.009959, allocations: 41.39 kB / 343.3 MB, free: 6.871 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.263e-06/0.00996, allocations: 0 / 343.3 MB, free: 6.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002971/0.01026, allocations: 215.4 kB / 343.5 MB, free: 6.652 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.291e-05/0.01027, allocations: 59.41 kB / 343.5 MB, free: 6.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.01041, allocations: 346.1 kB / 343.9 MB, free: 6.227 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.01042, allocations: 29.7 kB / 343.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.344e-05/0.01051, allocations: 315 kB / 344.2 MB, free: 5.875 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/0.01055, allocations: 99.16 kB / 344.3 MB, free: 5.777 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.964e-05/0.0106, allocations: 67.31 kB / 344.4 MB, free: 5.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.835e-05/0.01064, allocations: 0.5157 MB / 344.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.325e-05/0.01068, allocations: 27.97 kB / 344.9 MB, free: 5.148 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.714e-05/0.01075, allocations: 182.5 kB / 345.1 MB, free: 4.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.01088, allocations: 238.8 kB / 345.3 MB, free: 4.621 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.01088, allocations: 4 kB / 345.3 MB, free: 4.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000214/0.01109, allocations: 263.1 kB / 345.6 MB, free: 4.352 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.0111, allocations: 4 kB / 345.6 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01111, allocations: 4 kB / 345.6 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.981e-05/0.0112, allocations: 24.09 kB / 345.6 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.01133, allocations: 75.84 kB / 345.7 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004377/0.01177, allocations: 1.709 MB / 347.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.057e-05/0.01186, allocations: 35.73 kB / 347.4 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.01187, allocations: 8 kB / 347.4 MB, free: 2.371 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 7.886e-05/0.01195, allocations: 184.6 kB / 347.6 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/0.01198, allocations: 35.81 kB / 347.7 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.01202, allocations: 38.45 kB / 347.7 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.01202, allocations: 7.922 kB / 347.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.01202, allocations: 0 / 347.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.01202, allocations: 0 / 347.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003838/0.01241, allocations: 0.5228 MB / 348.2 MB, free: 1.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.01241, allocations: 4 kB / 348.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.01254, allocations: 51.86 kB / 348.3 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-05/0.01258, allocations: 27.61 kB / 348.3 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.01259, allocations: 11.98 kB / 348.3 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004196/0.01301, allocations: 1.721 MB / 350 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01302, allocations: 0 / 350 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.01328, allocations: 372.4 kB / 350.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.317e-05/0.01335, allocations: 59.84 kB / 350.5 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.01337, allocations: 7.938 kB / 350.5 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.01346, allocations: 8 kB / 350.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.01349, allocations: 19.97 kB / 350.5 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.0135, allocations: 7.922 kB / 350.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001156/0.01362, allocations: 226.9 kB / 350.7 MB, free: 14.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01362, allocations: 0 / 350.7 MB, free: 14.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.01388, allocations: 115.7 kB / 350.8 MB, free: 14.79 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 0.0003008/0.01418, allocations: 103.2 kB / 350.9 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002755/0.01445, allocations: 313.9 kB / 351.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01446, allocations: 0 / 351.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.01458, allocations: 237.4 kB / 351.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.01487, allocations: 72.81 kB / 351.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.0161, allocations: 0.9156 MB / 352.5 MB, free: 13.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.01625, allocations: 215.1 kB / 352.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.01642, allocations: 142.2 kB / 352.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01642, allocations: 0 / 352.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of Templates: time 0.006535/0.02295, allocations: 6.69 MB / 359.5 MB, free: 6.016 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 > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7275421167723835]