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.001416/0.001416, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.002079/0.002079, allocations: 173.7 kB / 23.28 MB, free: 1.219 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.05/1.05, allocations: 177.1 MB / 203.7 MB, free: 5.535 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.004756/0.004756, allocations: 1.199 MB / 261.4 MB, free: 11.77 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.443e-06/1.443e-06, allocations: 0 / 331.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.385e-05, allocations: 4.844 kB / 331.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004161/0.004185, allocations: 5.511 MB / 337.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.006716, allocations: 1.92 MB / 339 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000419/0.007135, allocations: 43.69 kB / 339.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006546/0.00779, allocations: 369.4 kB / 339.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000705/0.008495, allocations: 472.8 kB / 339.9 MB, free: 9.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.008817, allocations: 199.7 kB / 340.1 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.009946, allocations: 1.851 MB / 341.9 MB, free: 7.625 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006429/0.01059, allocations: 0.8442 MB / 342.8 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.01159, allocations: 1.314 MB / 344.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006702/0.01226, allocations: 0.9158 MB / 345 MB, free: 4.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.01244, allocations: 208 kB / 345.2 MB, free: 4.301 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002597/0.0127, allocations: 235.9 kB / 345.4 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.01293, allocations: 0.5686 MB / 346 MB, free: 3.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004671/0.0134, allocations: 0.6665 MB / 346.7 MB, free: 2.832 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.01444, allocations: 1.566 MB / 348.2 MB, free: 1.262 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.01444, allocations: 0 / 348.2 MB, free: 1.262 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01444, allocations: 4 kB / 348.2 MB, free: 1.258 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.01446, allocations: 4 kB / 348.2 MB, free: 1.254 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.002038/0.01649, allocations: 2.083 MB / 350.3 MB, free: 15.12 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.01653, allocations: 16.02 kB / 350.3 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005034/0.01703, allocations: 315.8 kB / 350.6 MB, free: 14.8 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009582/0.01799, allocations: 0.9094 MB / 351.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.178e-05/0.01805, allocations: 107.3 kB / 351.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.0182, allocations: 148.4 kB / 351.8 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.01952, allocations: 1.212 MB / 353 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.432e-05/0.01956, allocations: 11.89 kB / 353 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.953e-05/0.01965, allocations: 56 kB / 353.1 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.199e-05/0.01971, allocations: 70.92 kB / 353.2 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.0204, allocations: 423.8 kB / 353.6 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/0.02468, allocations: 4.061 MB / 357.6 MB, free: 7.574 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005937/0.02527, allocations: 0.5143 MB / 358.1 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.02551, allocations: 200.8 kB / 358.3 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.02555, allocations: 16.66 kB / 358.4 MB, free: 6.848 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.02558, allocations: 58.02 kB / 358.4 MB, free: 6.777 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 3.126e-06/0.02558, allocations: 0 / 358.4 MB, free: 6.777 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.002987/0.02857, allocations: 1.878 MB / 360.3 MB, free: 4.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.0286, allocations: 60.06 kB / 360.4 MB, free: 4.785 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.02908, allocations: 0.6982 MB / 361 MB, free: 4.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.02912, allocations: 41.69 kB / 361.1 MB, free: 4.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.02946, allocations: 0.7409 MB / 361.8 MB, free: 3.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.02962, allocations: 305.5 kB / 362.1 MB, free: 2.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.02978, allocations: 168.2 kB / 362.3 MB, free: 2.793 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.02998, allocations: 0.6053 MB / 362.9 MB, free: 2.176 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.03013, allocations: 101.9 kB / 363 MB, free: 2.078 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.03038, allocations: 332.8 kB / 363.3 MB, free: 1.676 MB / 282.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.0006529/0.03103, allocations: 0.6692 MB / 364 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.03103, allocations: 0 / 364 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001107/0.03214, allocations: 0.8113 MB / 364.8 MB, free: 92 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.03216, allocations: 8 kB / 364.8 MB, free: 84 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.03217, allocations: 4 kB / 364.8 MB, free: 80 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007527/0.03292, allocations: 334.4 kB / 365.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.03322, allocations: 127.8 kB / 365.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004014/0.03723, allocations: 6.532 MB / 371.8 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.03753, allocations: 24 kB / 371.8 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.03756, allocations: 23.98 kB / 371.8 MB, free: 8.695 MB / 298.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.000342/0.0379, allocations: 204.4 kB / 372 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.03802, allocations: 123.3 kB / 372.2 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.03902, allocations: 0.7352 MB / 372.9 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.03902, allocations: 8 kB / 372.9 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.03903, allocations: 4 kB / 372.9 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.03903, allocations: 3.984 kB / 372.9 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.04144, allocations: 1.995 MB / 374.9 MB, free: 5.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.04145, allocations: 0 / 374.9 MB, free: 5.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.04169, allocations: 107.9 kB / 375 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/0.0423, allocations: 309.5 kB / 375.3 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.04234, allocations: 20.05 kB / 375.3 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/0.04554, allocations: 6.272 MB / 381.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.04555, allocations: 0 / 381.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.04668, allocations: 1.027 MB / 382.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002076/0.04689, allocations: 151.4 kB / 382.8 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.04694, allocations: 19.98 kB / 382.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.04716, allocations: 43.98 kB / 382.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.04727, allocations: 64.47 kB / 382.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.0473, allocations: 15.98 kB / 382.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002708/0.04757, allocations: 414.8 kB / 383.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04757, allocations: 0 / 383.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008595/0.04843, allocations: 308 kB / 383.6 MB, free: 12.42 MB / 314.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.000167/0.0486, allocations: 129.9 kB / 383.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.04979, allocations: 1.116 MB / 384.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.04979, allocations: 4 kB / 384.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007792/0.05057, allocations: 0.8923 MB / 385.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006265/0.0512, allocations: 271 kB / 386 MB, free: 9.895 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.05407, allocations: 2.562 MB / 388.6 MB, free: 7.277 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.05438, allocations: 435.5 kB / 389 MB, free: 6.832 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002521/0.05463, allocations: 107.6 kB / 389.1 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.05504, allocations: 322 kB / 389.4 MB, free: 6.406 MB / 314.7 MB Notification: Performance of SimCode: time 8.72e-07/0.05504, allocations: 0 / 389.4 MB, free: 6.406 MB / 314.7 MB Notification: Performance of Templates: time 0.02249/0.07753, allocations: 18.65 MB / 408.1 MB, free: 4.059 MB / 330.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.594593837391585]