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.0006575/0.0006575, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009476/0.001605, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006832/0.0006832, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009248/0.001608, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.8976/0.8976, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07824/0.9758, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.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.004668/0.004668, allocations: 1.175 MB / 245.3 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001172/0.00584, allocations: 0.8346 MB / 246.2 MB, free: 12.78 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.503e-06/1.503e-06, allocations: 0 / 247.4 MB, free: 11.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.908e-06/1.141e-05, allocations: 6.312 kB / 247.4 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004641/0.004652, allocations: 5.618 MB / 253.1 MB, free: 5.836 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.00764, allocations: 1.981 MB / 255 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003867/0.008027, allocations: 43.69 kB / 255.1 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000631/0.008658, allocations: 373.4 kB / 255.5 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008039/0.009462, allocations: 464.8 kB / 255.9 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.009791, allocations: 215.5 kB / 256.1 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.01117, allocations: 1.866 MB / 258 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007962/0.01196, allocations: 0.8404 MB / 258.8 MB, free: 8 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.01353, allocations: 1.41 MB / 260.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007782/0.01431, allocations: 0.9158 MB / 261.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.0145, allocations: 208 kB / 261.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.01483, allocations: 239.9 kB / 261.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002893/0.01512, allocations: 462.8 kB / 262 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004465/0.01557, allocations: 0.5537 MB / 262.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.01666, allocations: 1.46 MB / 264.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.253e-05/0.01668, allocations: 4 kB / 264.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.01668, allocations: 0 / 264.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.444e-05/0.0167, allocations: 0 / 264.1 MB, free: 10.76 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.002212/0.01891, allocations: 2.219 MB / 266.3 MB, free: 8.508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.01894, allocations: 11.98 kB / 266.3 MB, free: 8.496 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004612/0.0194, allocations: 337.8 kB / 266.6 MB, free: 8.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008576/0.02026, allocations: 0.6881 MB / 267.3 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.02032, allocations: 115.3 kB / 267.4 MB, free: 7.316 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.02047, allocations: 144.3 kB / 267.6 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.02162, allocations: 1.245 MB / 268.8 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.837e-05/0.02164, allocations: 4 kB / 268.8 MB, free: 5.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.02173, allocations: 63.98 kB / 268.9 MB, free: 5.777 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.735e-05/0.02177, allocations: 58.94 kB / 268.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006054/0.02238, allocations: 448.1 kB / 269.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003558/0.02594, allocations: 3.21 MB / 272.6 MB, free: 1.961 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005637/0.0265, allocations: 477.3 kB / 273 MB, free: 1.488 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.0267, allocations: 166.8 kB / 273.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.02674, allocations: 12.66 kB / 273.2 MB, free: 1.312 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.02676, allocations: 43.22 kB / 273.3 MB, free: 1.262 MB / 266.7 MB Notification: Performance of pre-optimization done (n=74): time 1.883e-06/0.02677, allocations: 0 / 273.3 MB, free: 1.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.1069/0.1337, allocations: 1.841 MB / 275.1 MB, free: 19.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.091e-05/0.1337, allocations: 65.19 kB / 275.2 MB, free: 19.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000537/0.1343, allocations: 0.5679 MB / 275.7 MB, free: 19.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.1343, allocations: 38.17 kB / 275.8 MB, free: 19.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.1346, allocations: 0.5729 MB / 276.3 MB, free: 19.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.1347, allocations: 287.8 kB / 276.6 MB, free: 19.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.1349, allocations: 144.7 kB / 276.8 MB, free: 19.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.802e-05/0.135, allocations: 401.4 kB / 277.2 MB, free: 18.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.1352, allocations: 104.9 kB / 277.3 MB, free: 18.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.1354, allocations: 245.8 kB / 277.5 MB, free: 18.75 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.0007377/0.1361, allocations: 0.6197 MB / 278.1 MB, free: 18.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1361, allocations: 4.969 kB / 278.1 MB, free: 18.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001166/0.1373, allocations: 0.6595 MB / 278.8 MB, free: 18.47 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.1373, allocations: 8.172 kB / 278.8 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1373, allocations: 5.219 kB / 278.8 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008597/0.1382, allocations: 327.4 kB / 279.1 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/0.1387, allocations: 161.6 kB / 279.3 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003307/0.142, allocations: 4.823 MB / 284.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.1423, allocations: 25.86 kB / 284.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.1423, allocations: 20.94 kB / 284.1 MB, free: 14.69 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.000264/0.1426, allocations: 164.8 kB / 284.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.1427, allocations: 80.52 kB / 284.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.1438, allocations: 0.6454 MB / 285 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1438, allocations: 7.844 kB / 285 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1438, allocations: 5.406 kB / 285 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1438, allocations: 3.703 kB / 285 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/0.1463, allocations: 1.636 MB / 286.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.1463, allocations: 0 / 286.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.1467, allocations: 152.5 kB / 286.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.1469, allocations: 117.1 kB / 286.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007392/0.1477, allocations: 304.7 kB / 287.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.519e-05/0.1477, allocations: 19.11 kB / 287.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.1502, allocations: 4.585 MB / 291.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1502, allocations: 1.562 kB / 291.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.1515, allocations: 0.853 MB / 292.7 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.703e-05/0.1516, allocations: 21.56 kB / 292.7 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.1519, allocations: 44.47 kB / 292.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.152, allocations: 61.41 kB / 292.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.1521, allocations: 17.84 kB / 292.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000275/0.1523, allocations: 274.4 kB / 293.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1523, allocations: 0 / 293.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007887/0.1531, allocations: 312.2 kB / 293.4 MB, free: 10.01 MB / 266.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.000122/0.1532, allocations: 106.7 kB / 293.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.1543, allocations: 0.9095 MB / 294.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.105e-05/0.1543, allocations: 15.53 kB / 294.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/0.1551, allocations: 0.7471 MB / 295.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.1561, allocations: 2.678 MB / 297.9 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.1699, allocations: 2.614 MB / 300.5 MB, free: 4.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.1702, allocations: 381.8 kB / 300.9 MB, free: 4.676 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002749/0.1705, allocations: 99.95 kB / 301 MB, free: 4.625 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004789/0.171, allocations: 279.1 kB / 301.2 MB, free: 4.527 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.171, allocations: 0 / 301.2 MB, free: 4.527 MB / 266.7 MB Notification: Performance of Templates: time 0.0255/0.1965, allocations: 19.46 MB / 320.7 MB, free: 1.746 MB / 282.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.1245259447023273]