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.001451/0.001451, allocations: 73.09 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.00163/0.00163, 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.9764/0.9764, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.01223/0.01223, allocations: 1.195 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.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.272e-06/1.272e-06, allocations: 0 / 332.4 MB, free: 17.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.456e-05/1.583e-05, allocations: 6.25 kB / 332.4 MB, free: 17.98 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004013/0.004029, allocations: 5.519 MB / 337.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.006187, allocations: 1.916 MB / 339.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.006535, allocations: 47.62 kB / 339.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005926/0.007127, allocations: 361.5 kB / 340.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006557/0.007783, allocations: 464.8 kB / 340.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.008055, allocations: 207.6 kB / 340.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000943/0.008998, allocations: 1.855 MB / 342.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006041/0.009602, allocations: 0.8403 MB / 343.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009273/0.01053, allocations: 1.31 MB / 344.9 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006322/0.01116, allocations: 0.9158 MB / 345.8 MB, free: 4.473 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.01135, allocations: 208 kB / 346 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002655/0.01162, allocations: 235.9 kB / 346.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002297/0.01185, allocations: 0.5687 MB / 346.8 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.01224, allocations: 0.6665 MB / 347.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008287/0.01307, allocations: 1.566 MB / 349 MB, free: 1.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.01307, allocations: 0 / 349 MB, free: 1.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.01307, allocations: 0 / 349 MB, free: 1.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.01309, allocations: 0 / 349 MB, free: 1.23 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.001789/0.01488, allocations: 2.091 MB / 351.1 MB, free: 15.09 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.765e-05/0.0149, allocations: 8.031 kB / 351.1 MB, free: 15.08 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003952/0.0153, allocations: 323.8 kB / 351.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008677/0.01617, allocations: 0.9133 MB / 352.3 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.875e-05/0.01623, allocations: 103.3 kB / 352.4 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.01637, allocations: 148.4 kB / 352.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.01751, allocations: 1.216 MB / 353.8 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/0.01755, allocations: 15.88 kB / 353.8 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.121e-05/0.01763, allocations: 56 kB / 353.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.081e-05/0.01768, allocations: 66.92 kB / 353.9 MB, free: 12.13 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006114/0.01829, allocations: 423.8 kB / 354.4 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003882/0.02217, allocations: 4.061 MB / 358.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/0.02276, allocations: 0.5248 MB / 358.9 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.02299, allocations: 200.8 kB / 359.1 MB, free: 6.82 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.02302, allocations: 12.75 kB / 359.1 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.02305, allocations: 45.98 kB / 359.2 MB, free: 6.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 1.984e-06/0.02305, allocations: 0 / 359.2 MB, free: 6.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.002963/0.02601, allocations: 1.886 MB / 361.1 MB, free: 4.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.02604, allocations: 64.05 kB / 361.1 MB, free: 4.746 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004642/0.0265, allocations: 0.6904 MB / 361.8 MB, free: 4.035 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.02654, allocations: 41.7 kB / 361.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003296/0.02687, allocations: 0.7487 MB / 362.6 MB, free: 3.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.02703, allocations: 301.5 kB / 362.9 MB, free: 2.934 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.0272, allocations: 164.2 kB / 363.1 MB, free: 2.762 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.02738, allocations: 0.6014 MB / 363.7 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.02752, allocations: 101.9 kB / 363.8 MB, free: 2.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.02777, allocations: 344.8 kB / 364.1 MB, free: 1.637 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.0006122/0.02838, allocations: 0.6653 MB / 364.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.02838, allocations: 0 / 364.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001034/0.02942, allocations: 0.8113 MB / 365.6 MB, free: 56 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.02943, allocations: 10.97 kB / 365.6 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.02944, allocations: 4 kB / 365.6 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007043/0.03014, allocations: 330 kB / 365.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.03042, allocations: 135.7 kB / 366.1 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003625/0.03405, allocations: 6.528 MB / 372.6 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.03427, allocations: 20 kB / 372.6 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/0.0343, allocations: 27.94 kB / 372.6 MB, free: 8.66 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.0002352/0.03454, allocations: 212.4 kB / 372.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.03466, allocations: 123.3 kB / 373 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009686/0.03562, allocations: 0.7313 MB / 373.7 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.03563, allocations: 8 kB / 373.7 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.03563, allocations: 4 kB / 373.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.03564, allocations: 3.984 kB / 373.7 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.03787, allocations: 1.991 MB / 375.7 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.03787, allocations: 0 / 375.7 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.03813, allocations: 103.9 kB / 375.8 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006162/0.03875, allocations: 317.7 kB / 376.1 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.03879, allocations: 19.98 kB / 376.1 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/0.04186, allocations: 6.252 MB / 382.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.04186, allocations: 4 kB / 382.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.04299, allocations: 1.023 MB / 383.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.04318, allocations: 159.3 kB / 383.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.845e-05/0.04324, allocations: 24 kB / 383.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.04347, allocations: 35.97 kB / 383.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.04358, allocations: 64.47 kB / 383.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.04361, allocations: 16 kB / 383.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002531/0.04387, allocations: 418.8 kB / 384.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04387, allocations: 0 / 384.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000679/0.04454, allocations: 308 kB / 384.4 MB, free: 12.39 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.0001461/0.04469, allocations: 127.1 kB / 384.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.04609, allocations: 1.116 MB / 385.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.04609, allocations: 0 / 385.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009994/0.04709, allocations: 0.9 MB / 386.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000864/0.04796, allocations: 267.2 kB / 386.8 MB, free: 9.867 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.05146, allocations: 2.561 MB / 389.4 MB, free: 7.25 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.05185, allocations: 435.5 kB / 389.8 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003369/0.05219, allocations: 103.6 kB / 389.9 MB, free: 6.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005468/0.05273, allocations: 322 kB / 390.2 MB, free: 6.383 MB / 314.7 MB Notification: Performance of SimCode: time 7.32e-07/0.05273, allocations: 0 / 390.2 MB, free: 6.383 MB / 314.7 MB Notification: Performance of Templates: time 0.05787/0.1106, allocations: 19.01 MB / 409.2 MB, free: 3.617 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.558921542018652]