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.0009857/0.0009857, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001042/0.001042, allocations: 169 kB / 23.03 MB, free: 1.543 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 0.949/0.949, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.007847/0.007847, allocations: 1.196 MB / 261.1 MB, free: 11.89 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.473e-06/1.473e-06, allocations: 0 / 331.1 MB, free: 18.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.769e-05, allocations: 2.312 kB / 331.1 MB, free: 18.28 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.01776/0.01779, allocations: 5.623 MB / 336.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006195/0.02398, allocations: 1.931 MB / 338.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005881/0.02457, allocations: 47.62 kB / 338.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007678/0.02534, allocations: 357.5 kB / 339.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003893/0.02923, allocations: 468.8 kB / 339.5 MB, free: 9.828 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.0296, allocations: 211.7 kB / 339.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.0308, allocations: 1.847 MB / 341.6 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007902/0.03159, allocations: 0.8326 MB / 342.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004188/0.03578, allocations: 1.318 MB / 343.8 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.03708, allocations: 0.908 MB / 344.7 MB, free: 4.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003913/0.03747, allocations: 208 kB / 344.9 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004319/0.0379, allocations: 236 kB / 345.1 MB, free: 4.227 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003775/0.03828, allocations: 0.5687 MB / 345.7 MB, free: 3.656 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007858/0.03906, allocations: 0.6626 MB / 346.3 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.04056, allocations: 1.577 MB / 347.9 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.04056, allocations: 0 / 347.9 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.04057, allocations: 0 / 347.9 MB, free: 1.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.859e-05/0.04059, allocations: 0 / 347.9 MB, free: 1.41 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.00269/0.04328, allocations: 2.079 MB / 350 MB, free: 15.28 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.04333, allocations: 8.031 kB / 350 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005943/0.04392, allocations: 319.8 kB / 350.3 MB, free: 14.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.04538, allocations: 0.9602 MB / 351.3 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.531e-05/0.04547, allocations: 107.3 kB / 351.4 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.04567, allocations: 144.4 kB / 351.5 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002267/0.04794, allocations: 1.318 MB / 352.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/0.04798, allocations: 3.953 kB / 352.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.04811, allocations: 63.98 kB / 352.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.489e-05/0.04819, allocations: 58.94 kB / 352.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.04965, allocations: 0.5428 MB / 353.5 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006621/0.05628, allocations: 4.358 MB / 357.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.05731, allocations: 0.565 MB / 358.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004538/0.05777, allocations: 232.8 kB / 358.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.254e-05/0.05781, allocations: 12.66 kB / 358.7 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.05785, allocations: 50.05 kB / 358.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 2.595e-06/0.05785, allocations: 0 / 358.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.005293/0.06314, allocations: 2.201 MB / 360.9 MB, free: 4.051 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.06318, allocations: 60.06 kB / 361 MB, free: 3.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009145/0.06409, allocations: 0.722 MB / 361.7 MB, free: 3.238 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.898e-05/0.06415, allocations: 41.7 kB / 361.7 MB, free: 3.191 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005056/0.06466, allocations: 0.7332 MB / 362.5 MB, free: 2.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002546/0.06491, allocations: 297.5 kB / 362.7 MB, free: 2.156 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.06519, allocations: 164.3 kB / 362.9 MB, free: 1.984 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002857/0.06547, allocations: 0.5938 MB / 363.5 MB, free: 1.379 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000362/0.06583, allocations: 137.9 kB / 363.6 MB, free: 1.246 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.06636, allocations: 368.9 kB / 364 MB, free: 0.8086 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.001355/0.06771, allocations: 0.7474 MB / 364.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.06772, allocations: 4 kB / 364.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001965/0.06968, allocations: 0.8817 MB / 365.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.0697, allocations: 8 kB / 365.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.06971, allocations: 4 kB / 365.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.07091, allocations: 344 kB / 366 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.07137, allocations: 135.8 kB / 366.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005881/0.07725, allocations: 6.662 MB / 372.8 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.07773, allocations: 27.98 kB / 372.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.07779, allocations: 28 kB / 372.8 MB, free: 7.496 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.0004543/0.07825, allocations: 216.5 kB / 373 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.07843, allocations: 119.4 kB / 373.2 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.08018, allocations: 0.7939 MB / 373.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.08019, allocations: 8 kB / 374 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.08019, allocations: 4 kB / 374 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.0802, allocations: 7.984 kB / 374 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003878/0.08408, allocations: 2.065 MB / 376 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.08409, allocations: 0 / 376 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004387/0.08453, allocations: 111.8 kB / 376.1 MB, free: 4.078 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001039/0.08556, allocations: 318.6 kB / 376.5 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.278e-05/0.08562, allocations: 19.98 kB / 376.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004941/0.09056, allocations: 6.387 MB / 382.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.09056, allocations: 4.062 kB / 382.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.09267, allocations: 1.132 MB / 384 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005374/0.0932, allocations: 171.3 kB / 384.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.09331, allocations: 27.98 kB / 384.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003904/0.09371, allocations: 35.98 kB / 384.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.09387, allocations: 64.47 kB / 384.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/0.09393, allocations: 23.98 kB / 384.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005634/0.09449, allocations: 450.9 kB / 384.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.09449, allocations: 0 / 384.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001111/0.0956, allocations: 308 kB / 385.1 MB, free: 10.75 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.0001826/0.09578, allocations: 126.4 kB / 385.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.09777, allocations: 1.175 MB / 386.4 MB, free: 9.391 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.09777, allocations: 0 / 386.4 MB, free: 9.391 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.09903, allocations: 0.9236 MB / 387.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.1001, allocations: 263 kB / 387.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004791/0.1049, allocations: 2.578 MB / 390.1 MB, free: 5.516 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1053, allocations: 435.5 kB / 390.5 MB, free: 5.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003835/0.1057, allocations: 103.6 kB / 390.6 MB, free: 4.965 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.1058, allocations: 68.42 kB / 390.7 MB, free: 4.895 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/0.1058, allocations: 0 / 390.7 MB, free: 4.895 MB / 314.7 MB Notification: Performance of Templates: time 0.02552/0.1314, allocations: 18.39 MB / 409.1 MB, free: 2.75 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.5522635160014033]