Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.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.0008985/0.0008985, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.000973/0.000973, allocations: 181 kB / 23.36 MB, free: 1.133 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.9921/0.9921, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.008792/0.008792, allocations: 1.992 MB / 262.3 MB, free: 10.95 MB / 250.7 MB " [Timeout remaining time 180] Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.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(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 279.4 MB, free: 9.844 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.619e-05, allocations: 6.312 kB / 279.4 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.01329/0.01332, allocations: 3.01 MB / 282.4 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.01597, allocations: 1.379 MB / 283.8 MB, free: 5.422 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003383/0.01935, allocations: 19.88 kB / 283.8 MB, free: 5.402 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.0197, allocations: 99.16 kB / 283.9 MB, free: 5.305 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.02076, allocations: 401.7 kB / 284.3 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.02106, allocations: 175.8 kB / 284.4 MB, free: 4.738 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000897/0.02196, allocations: 0.7912 MB / 285.2 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00337/0.02533, allocations: 239.7 kB / 285.5 MB, free: 3.707 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005361/0.02587, allocations: 491 kB / 285.9 MB, free: 3.227 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003246/0.02619, allocations: 283.2 kB / 286.2 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.349e-05/0.02627, allocations: 60 kB / 286.3 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.02656, allocations: 163.9 kB / 286.4 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.02676, allocations: 243.3 kB / 286.7 MB, free: 2.492 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004345/0.02719, allocations: 203.4 kB / 286.9 MB, free: 2.293 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006865/0.02788, allocations: 0.6382 MB / 287.5 MB, free: 1.652 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.02788, allocations: 0 / 287.5 MB, free: 1.652 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.02788, allocations: 4 kB / 287.5 MB, free: 1.648 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.02789, allocations: 0 / 287.5 MB, free: 1.648 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.004172/0.03206, allocations: 1.095 MB / 288.6 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.0321, allocations: 12.03 kB / 288.6 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003057/0.0324, allocations: 104.8 kB / 288.7 MB, free: 420 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1141/0.1465, allocations: 435.2 kB / 289.1 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.1466, allocations: 39.28 kB / 289.2 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.1467, allocations: 50.25 kB / 289.2 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008662/0.1475, allocations: 0.5939 MB / 289.8 MB, free: 23.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.1475, allocations: 5.938 kB / 289.8 MB, free: 23.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.576e-05/0.1476, allocations: 21.59 kB / 289.9 MB, free: 23.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.323e-05/0.1476, allocations: 42.25 kB / 289.9 MB, free: 23.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000418/0.1481, allocations: 208.8 kB / 290.1 MB, free: 23.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002347/0.1504, allocations: 1.499 MB / 291.6 MB, free: 22.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.1508, allocations: 239.5 kB / 291.8 MB, free: 22.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.1509, allocations: 74.3 kB / 291.9 MB, free: 22.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.1511, allocations: 39.77 kB / 291.9 MB, free: 22.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.1511, allocations: 38.69 kB / 292 MB, free: 22.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 2.595e-06/0.1511, allocations: 0.8438 kB / 292 MB, free: 22.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005279/0.1516, allocations: 253.5 kB / 292.2 MB, free: 22.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.024e-05/0.1516, allocations: 56.25 kB / 292.3 MB, free: 22.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.152, allocations: 421.5 kB / 292.7 MB, free: 22.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.152, allocations: 35.42 kB / 292.7 MB, free: 22.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.1521, allocations: 296.4 kB / 293 MB, free: 22.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.731e-05/0.1522, allocations: 128.8 kB / 293.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.1524, allocations: 110 kB / 293.3 MB, free: 22.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.1525, allocations: 373.8 kB / 293.6 MB, free: 21.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.1526, allocations: 57.06 kB / 293.7 MB, free: 21.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.1528, allocations: 190.2 kB / 293.9 MB, free: 21.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003441/0.1531, allocations: 289.5 kB / 294.1 MB, free: 21.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1531, allocations: 2.25 kB / 294.1 MB, free: 21.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004598/0.1536, allocations: 301 kB / 294.4 MB, free: 21.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1536, allocations: 7.219 kB / 294.4 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.1536, allocations: 5.25 kB / 294.5 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.1536, allocations: 9.688 kB / 294.5 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.1538, allocations: 91.86 kB / 294.5 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.1539, allocations: 8.234 kB / 294.6 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.1541, allocations: 63.41 kB / 294.6 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.1541, allocations: 26.62 kB / 294.6 MB, free: 21.49 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.1543, allocations: 156.3 kB / 294.8 MB, free: 21.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1544, allocations: 48.67 kB / 294.8 MB, free: 21.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004428/0.1548, allocations: 291 kB / 295.1 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1548, allocations: 4.281 kB / 295.1 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1548, allocations: 2.641 kB / 295.1 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1548, allocations: 3.016 kB / 295.1 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000938/0.1558, allocations: 0.6811 MB / 295.8 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1558, allocations: 4.891 kB / 295.8 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.1559, allocations: 61.09 kB / 295.9 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1559, allocations: 3.5 kB / 295.9 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.156, allocations: 15.91 kB / 295.9 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.156, allocations: 2.375 kB / 295.9 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.156, allocations: 0 / 295.9 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/0.1565, allocations: 442.4 kB / 296.3 MB, free: 20.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.1566, allocations: 83.84 kB / 296.4 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.1566, allocations: 9.797 kB / 296.4 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1568, allocations: 31.2 kB / 296.5 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.157, allocations: 65.94 kB / 296.5 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.157, allocations: 23.27 kB / 296.5 MB, free: 20.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001524/0.1571, allocations: 172.9 kB / 296.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1571, allocations: 0 / 296.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003693/0.1575, allocations: 162.4 kB / 296.9 MB, free: 20.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002032/0.1577, allocations: 135.9 kB / 297 MB, free: 20.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.1581, allocations: 226.1 kB / 297.2 MB, free: 20.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/0.1581, allocations: 6.906 kB / 297.2 MB, free: 20.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.1583, allocations: 120.8 kB / 297.4 MB, free: 20.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.1586, allocations: 73.84 kB / 297.4 MB, free: 20.7 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.16, allocations: 1.021 MB / 298.4 MB, free: 20.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.1601, allocations: 166.1 kB / 298.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001984/0.1603, allocations: 82.78 kB / 298.7 MB, free: 20.08 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.1605, allocations: 152 kB / 298.8 MB, free: 20.03 MB / 266.7 MB Notification: Performance of SimCode: time 1.343e-06/0.1605, allocations: 1.344 kB / 298.8 MB, free: 20.03 MB / 266.7 MB Notification: Performance of Templates: time 0.01001/0.1705, allocations: 7.229 MB / 306.1 MB, free: 16.58 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile [Timeout 660] (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1377388616092503]