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.001199/0.001199, allocations: 92.22 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.001439/0.001439, allocations: 173 kB / 23.02 MB, free: 1.547 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.003/1.003, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.00497/0.00497, allocations: 1.192 MB / 261.1 MB, free: 11.9 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.462e-06/1.462e-06, allocations: 3.938 kB / 331.1 MB, free: 3.352 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.412e-05, allocations: 2.312 kB / 331.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.005548/0.005572, allocations: 5.615 MB / 336.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.008754, allocations: 1.931 MB / 338.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005866/0.00934, allocations: 43.69 kB / 338.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009383/0.01028, allocations: 357.8 kB / 339.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.01138, allocations: 472.8 kB / 339.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.01184, allocations: 211.6 kB / 339.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.0134, allocations: 1.85 MB / 341.6 MB, free: 8.836 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008848/0.01429, allocations: 0.8326 MB / 342.4 MB, free: 7.969 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.0159, allocations: 1.31 MB / 343.7 MB, free: 6.656 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008918/0.0168, allocations: 0.9158 MB / 344.7 MB, free: 5.738 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.017, allocations: 208 kB / 344.9 MB, free: 5.535 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003271/0.01733, allocations: 232 kB / 345.1 MB, free: 5.309 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003393/0.01767, allocations: 0.5686 MB / 345.7 MB, free: 4.738 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000543/0.01821, allocations: 0.6665 MB / 346.3 MB, free: 4.07 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00198/0.02019, allocations: 1.569 MB / 347.9 MB, free: 2.496 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.02019, allocations: 0 / 347.9 MB, free: 2.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.02019, allocations: 0 / 347.9 MB, free: 2.496 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.409e-05/0.02022, allocations: 0 / 347.9 MB, free: 2.496 MB / 314.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.002296/0.02252, allocations: 2.146 MB / 350 MB, free: 308 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.02256, allocations: 12.03 kB / 350 MB, free: 296 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005513/0.02311, allocations: 324 kB / 350.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.02414, allocations: 0.9602 MB / 351.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.0242, allocations: 111.3 kB / 351.4 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.02435, allocations: 156.2 kB / 351.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.0259, allocations: 1.306 MB / 352.9 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.02593, allocations: 0 / 352.9 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.552e-05/0.02602, allocations: 60 kB / 352.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-05/0.02608, allocations: 66.86 kB / 353 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009383/0.02702, allocations: 0.5363 MB / 353.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004949/0.03197, allocations: 4.401 MB / 357.9 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007706/0.03274, allocations: 0.5671 MB / 358.5 MB, free: 7.562 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003505/0.03309, allocations: 232.8 kB / 358.7 MB, free: 7.336 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.225e-05/0.03314, allocations: 16.66 kB / 358.8 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.03317, allocations: 42.05 kB / 358.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 2.725e-06/0.03317, allocations: 0 / 358.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.003972/0.03714, allocations: 2.337 MB / 361.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.03718, allocations: 60.06 kB / 361.2 MB, free: 4.812 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009207/0.0381, allocations: 0.722 MB / 361.9 MB, free: 4.074 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.03814, allocations: 37.7 kB / 362 MB, free: 4.031 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.03848, allocations: 0.7371 MB / 362.7 MB, free: 3.285 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.03863, allocations: 297.5 kB / 363 MB, free: 2.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.0388, allocations: 164.3 kB / 363.1 MB, free: 2.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.03899, allocations: 0.5899 MB / 363.7 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.03921, allocations: 133.9 kB / 363.9 MB, free: 2.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/0.03956, allocations: 368.9 kB / 364.2 MB, free: 1.652 MB / 330.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.0008539/0.04041, allocations: 0.7552 MB / 365 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.04042, allocations: 0 / 365 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001352/0.04177, allocations: 0.9134 MB / 365.9 MB, free: 15.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.04179, allocations: 8 kB / 365.9 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.0418, allocations: 11.88 kB / 365.9 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000909/0.04271, allocations: 366.7 kB / 366.3 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.04302, allocations: 135.8 kB / 366.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00486/0.04788, allocations: 6.771 MB / 373.2 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003816/0.04826, allocations: 36.11 kB / 373.2 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-05/0.04831, allocations: 47.92 kB / 373.3 MB, free: 8.133 MB / 346.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.0003838/0.04869, allocations: 200.4 kB / 373.5 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.04882, allocations: 119.4 kB / 373.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.05007, allocations: 0.8327 MB / 374.4 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.05008, allocations: 8 kB / 374.4 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.05009, allocations: 8 kB / 374.4 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.0501, allocations: 7.922 kB / 374.4 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002946/0.05304, allocations: 2.077 MB / 376.5 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.05305, allocations: 0 / 376.5 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002909/0.05334, allocations: 111.8 kB / 376.6 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007418/0.05408, allocations: 325.2 kB / 376.9 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-05/0.05414, allocations: 27.98 kB / 377 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/0.05778, allocations: 6.399 MB / 383.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.05778, allocations: 4 kB / 383.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.05927, allocations: 1.129 MB / 384.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.05955, allocations: 183.3 kB / 384.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/0.05962, allocations: 20 kB / 384.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.05987, allocations: 35.97 kB / 384.7 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.06001, allocations: 72.52 kB / 384.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.06005, allocations: 27.98 kB / 384.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004022/0.06045, allocations: 450.9 kB / 385.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.06045, allocations: 0 / 385.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008244/0.06128, allocations: 308 kB / 385.6 MB, free: 11.32 MB / 362.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.0001565/0.06144, allocations: 126.4 kB / 385.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.06294, allocations: 1.21 MB / 386.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.06295, allocations: 0 / 386.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009508/0.0639, allocations: 0.939 MB / 387.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007919/0.06469, allocations: 267.6 kB / 388.1 MB, free: 8.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003757/0.06845, allocations: 2.586 MB / 390.7 MB, free: 6.016 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.06879, allocations: 427.6 kB / 391.1 MB, free: 5.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003581/0.06915, allocations: 167.4 kB / 391.3 MB, free: 5.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.06929, allocations: 60.5 kB / 391.3 MB, free: 5.352 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.06929, allocations: 4 kB / 391.3 MB, free: 5.348 MB / 362.7 MB Notification: Performance of Templates: time 0.02448/0.09377, allocations: 18.4 MB / 409.7 MB, free: 3.191 MB / 378.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.4153512828052044]