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.0006808/0.0006808, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000963/0.001644, allocations: 435.8 kB / 10.33 MB, free: 368 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.0007056/0.0007056, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009606/0.001666, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9624/0.9624, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08661/1.049, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.008676/0.008676, allocations: 1.991 MB / 246 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001768/0.01044, allocations: 1.045 MB / 247 MB, free: 11.84 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.393e-06/1.393e-06, allocations: 0 / 248.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.26e-05/1.4e-05, allocations: 5.969 kB / 248.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004291/0.004305, allocations: 3.026 MB / 251.3 MB, free: 7.543 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002728/0.007032, allocations: 1.383 MB / 252.7 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003264/0.007359, allocations: 15.88 kB / 252.7 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003078/0.007666, allocations: 103.2 kB / 252.8 MB, free: 6.039 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.008836, allocations: 397.7 kB / 253.2 MB, free: 5.648 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.00921, allocations: 179.7 kB / 253.3 MB, free: 5.473 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.01034, allocations: 0.7796 MB / 254.1 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004053/0.01075, allocations: 239.8 kB / 254.4 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007753/0.01153, allocations: 0.5231 MB / 254.9 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.01193, allocations: 283.2 kB / 255.2 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.519e-05/0.01201, allocations: 60 kB / 255.2 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.01226, allocations: 183.7 kB / 255.4 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.01241, allocations: 195.5 kB / 255.6 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.01254, allocations: 167.5 kB / 255.7 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005822/0.01312, allocations: 0.576 MB / 256.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.508e-05/0.01314, allocations: 0 / 256.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01314, allocations: 0 / 256.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.846e-05/0.01316, allocations: 0 / 256.3 MB, free: 2.48 MB / 250.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.001682/0.01484, allocations: 1.318 MB / 257.6 MB, free: 1.113 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.01487, allocations: 12.03 kB / 257.6 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.01507, allocations: 108.8 kB / 257.8 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.01551, allocations: 435.3 kB / 258.2 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.01553, allocations: 37.69 kB / 258.2 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.01558, allocations: 48.38 kB / 258.3 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/0.01615, allocations: 0.59 MB / 258.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.01617, allocations: 192 / 258.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.0162, allocations: 31.92 kB / 258.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.284e-05/0.01624, allocations: 45.22 kB / 258.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.01652, allocations: 221.1 kB / 259.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.01817, allocations: 1.491 MB / 260.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.01846, allocations: 245.8 kB / 260.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.424e-05/0.01855, allocations: 68.83 kB / 260.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.01866, allocations: 35.97 kB / 261 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.01868, allocations: 38.56 kB / 261 MB, free: 13.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.01868, allocations: 0 / 261 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0003938/0.01908, allocations: 254.9 kB / 261.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.0191, allocations: 59.39 kB / 261.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.01934, allocations: 423 kB / 261.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.01937, allocations: 37.7 kB / 261.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.01948, allocations: 290 kB / 262.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/0.01954, allocations: 134.8 kB / 262.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.01964, allocations: 110.1 kB / 262.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.01973, allocations: 366.7 kB / 262.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.863e-05/0.01983, allocations: 55.8 kB / 262.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.01997, allocations: 192.1 kB / 262.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/0.02022, allocations: 289.2 kB / 263.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.02022, allocations: 0 / 263.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0003358/0.02056, allocations: 295.9 kB / 263.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.02057, allocations: 8 kB / 263.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.02057, allocations: 4 kB / 263.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.02059, allocations: 8.469 kB / 263.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.02077, allocations: 103.8 kB / 263.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.02078, allocations: 4 kB / 263.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.02097, allocations: 67.66 kB / 263.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.02099, allocations: 20.09 kB / 263.7 MB, free: 10.73 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.0001379/0.02113, allocations: 162.4 kB / 263.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.499e-05/0.02121, allocations: 43.95 kB / 263.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003675/0.02157, allocations: 295.2 kB / 264.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.02158, allocations: 15.88 kB / 264.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.02158, allocations: 0 / 264.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.02159, allocations: 0 / 264.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007247/0.02231, allocations: 0.6802 MB / 264.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.02231, allocations: 3.984 kB / 264.9 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.02245, allocations: 59.91 kB / 264.9 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.522e-05/0.02255, allocations: 91.39 kB / 265 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.02255, allocations: 4 kB / 265 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.02257, allocations: 11.98 kB / 265 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.02257, allocations: 4 kB / 265 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.02257, allocations: 0 / 265 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004358/0.02301, allocations: 441.1 kB / 265.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.02305, allocations: 15.94 kB / 265.5 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.02322, allocations: 31.95 kB / 265.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.02333, allocations: 67.89 kB / 265.6 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.02334, allocations: 16.02 kB / 265.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.02346, allocations: 176.4 kB / 265.8 MB, free: 8.578 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02346, allocations: 0 / 265.8 MB, free: 8.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.02374, allocations: 159.6 kB / 265.9 MB, free: 8.422 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.0001633/0.02391, allocations: 134.2 kB / 266.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.02419, allocations: 226 kB / 266.3 MB, free: 8.059 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/0.02421, allocations: 15.98 kB / 266.3 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.02434, allocations: 121 kB / 266.4 MB, free: 7.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.02459, allocations: 121.8 kB / 266.5 MB, free: 7.801 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.02833, allocations: 1.048 MB / 267.6 MB, free: 6.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001108/0.02844, allocations: 166.6 kB / 267.7 MB, free: 6.535 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.02862, allocations: 76.28 kB / 267.8 MB, free: 6.457 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.02883, allocations: 155.3 kB / 268 MB, free: 6.305 MB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.02883, allocations: 0 / 268 MB, free: 6.305 MB / 266.7 MB Notification: Performance of Templates: time 0.1088/0.1376, allocations: 7.362 MB / 275.3 MB, free: 18.74 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 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.796783935278654]