Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.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.0007584/0.0007584, allocations: 80.88 kB / 20.8 MB, free: 3.656 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.0008483/0.0008483, allocations: 169 kB / 24.23 MB, free: 240 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.9402/0.9402, allocations: 177.1 MB / 204.7 MB, free: 5.473 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.005055/0.005055, allocations: 1.197 MB / 262.3 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.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.617e-05/2.775e-05, allocations: 2.312 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.005546/0.005573, allocations: 5.571 MB / 284.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.009107, allocations: 1.962 MB / 286.9 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000579/0.009686, allocations: 47.62 kB / 286.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008968/0.01058, allocations: 389.2 kB / 287.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000935/0.01152, allocations: 472.8 kB / 287.7 MB, free: 2.312 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.01191, allocations: 207.7 kB / 287.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.01337, allocations: 1.851 MB / 289.8 MB, free: 256 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1613/0.1747, allocations: 0.85 MB / 290.7 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003975/0.1787, allocations: 1.303 MB / 292 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.1806, allocations: 0.9165 MB / 292.9 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006902/0.1813, allocations: 208.1 kB / 293.1 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006563/0.182, allocations: 234.6 kB / 293.3 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005744/0.1826, allocations: 0.5721 MB / 293.9 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.1843, allocations: 0.6677 MB / 294.5 MB, free: 19.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002949/0.1872, allocations: 1.565 MB / 296.1 MB, free: 19.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1872, allocations: 1.094 kB / 296.1 MB, free: 19.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1872, allocations: 0 / 296.1 MB, free: 19.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.619e-05/0.1873, allocations: 0 / 296.1 MB, free: 19.58 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.004512/0.1918, allocations: 1.871 MB / 298 MB, free: 18.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.1919, allocations: 9 kB / 298 MB, free: 18.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007526/0.1926, allocations: 268 kB / 298.2 MB, free: 18.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.1941, allocations: 0.6843 MB / 298.9 MB, free: 18.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.1942, allocations: 107 kB / 299 MB, free: 18.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.1944, allocations: 149 kB / 299.2 MB, free: 18.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/0.1965, allocations: 1.239 MB / 300.4 MB, free: 17.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/0.1965, allocations: 5.594 kB / 300.4 MB, free: 17.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.1966, allocations: 60.84 kB / 300.5 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-05/0.1967, allocations: 68.48 kB / 300.6 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000814/0.1975, allocations: 447.2 kB / 301 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004731/0.2023, allocations: 3.192 MB / 304.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/0.2029, allocations: 483.5 kB / 304.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.2031, allocations: 168.9 kB / 304.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.2031, allocations: 15.5 kB / 304.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.2031, allocations: 42.44 kB / 304.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=74): time 3.827e-06/0.2031, allocations: 0 / 304.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.003596/0.2067, allocations: 1.807 MB / 306.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.2068, allocations: 65.91 kB / 306.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005977/0.2074, allocations: 0.5692 MB / 307.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.2074, allocations: 40.94 kB / 307.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.2077, allocations: 0.5683 MB / 307.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.2079, allocations: 287.4 kB / 308.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.208, allocations: 144.7 kB / 308.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.2082, allocations: 402.2 kB / 308.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.2083, allocations: 100.8 kB / 308.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.2085, allocations: 255.5 kB / 309.1 MB, free: 13.18 MB / 266.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0006677/0.2092, allocations: 0.614 MB / 309.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2092, allocations: 0 / 309.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.0009927/0.2102, allocations: 0.6599 MB / 310.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.2102, allocations: 4 kB / 310.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.2102, allocations: 4 kB / 310.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007221/0.2109, allocations: 328.2 kB / 310.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.2113, allocations: 154.4 kB / 310.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003208/0.2145, allocations: 4.816 MB / 315.7 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.2149, allocations: 27.3 kB / 315.7 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.2149, allocations: 24 kB / 315.7 MB, free: 6.375 MB / 266.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smpm.phi = $START.smpm.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,15,81.2%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005501/0.2155, allocations: 162.5 kB / 315.9 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.2156, allocations: 83.92 kB / 315.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008559/0.2164, allocations: 0.6429 MB / 316.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2164, allocations: 8 kB / 316.6 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.2164, allocations: 4 kB / 316.6 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.2165, allocations: 3.984 kB / 316.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.2187, allocations: 1.618 MB / 318.2 MB, free: 4.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.2187, allocations: 11.98 kB / 318.2 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.2191, allocations: 141.5 kB / 318.4 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005937/0.2197, allocations: 294.6 kB / 318.7 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.861e-05/0.2197, allocations: 23.98 kB / 318.7 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002808/0.2225, allocations: 4.582 MB / 323.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.2225, allocations: 4 kB / 323.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.2238, allocations: 0.8572 MB / 324.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/0.2241, allocations: 115.4 kB / 324.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.2241, allocations: 20 kB / 324.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.2244, allocations: 39.98 kB / 324.3 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.2245, allocations: 68.45 kB / 324.4 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.2245, allocations: 12 kB / 324.4 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003001/0.2248, allocations: 274.3 kB / 324.6 MB, free: 13.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2248, allocations: 0 / 324.6 MB, free: 13.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001131/0.226, allocations: 311.1 kB / 325 MB, free: 13.12 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.phi,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(4,15,81.2%), (1,2,100.0%), (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.0001766/0.2262, allocations: 111.4 kB / 325.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.2274, allocations: 0.908 MB / 326 MB, free: 12.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-05/0.2274, allocations: 8.75 kB / 326 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.2282, allocations: 0.7007 MB / 326.7 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000734/0.2289, allocations: 271.7 kB / 326.9 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/0.2342, allocations: 2.468 MB / 329.4 MB, free: 8.652 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.2349, allocations: 367.6 kB / 329.8 MB, free: 8.273 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006663/0.2355, allocations: 99.62 kB / 329.9 MB, free: 8.172 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008743/0.2364, allocations: 277.1 kB / 330.1 MB, free: 7.898 MB / 282.7 MB Notification: Performance of SimCode: time 2.895e-06/0.2364, allocations: 0 / 330.1 MB, free: 7.898 MB / 282.7 MB Notification: Performance of Templates: time 0.03256/0.269, allocations: 18.64 MB / 348.8 MB, free: 5.633 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.255297007970512]