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.001291/0.001291, allocations: 88.23 kB / 19.64 MB, free: 308 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.0009141/0.0009141, allocations: 168.9 kB / 23.02 MB, free: 1.574 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.9529/0.9529, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.01162/0.01162, allocations: 1.989 MB / 261.9 MB, free: 11.07 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.824e-06/1.824e-06, allocations: 4 kB / 332.1 MB, free: 17.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.614e-05/1.796e-05, allocations: 4.844 kB / 332.1 MB, free: 17.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002907/0.002925, allocations: 2.997 MB / 335.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.004349, allocations: 1.336 MB / 336.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.004525, allocations: 19.88 kB / 336.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.004821, allocations: 99.11 kB / 336.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000759/0.00558, allocations: 413.8 kB / 337 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.005756, allocations: 183.6 kB / 337.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006224/0.006379, allocations: 0.7912 MB / 338 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.006626, allocations: 225.8 kB / 338.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.006894, allocations: 447.1 kB / 338.6 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.007112, allocations: 291.2 kB / 338.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.588e-05/0.007167, allocations: 64 kB / 339 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.007339, allocations: 167.8 kB / 339.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.007463, allocations: 247.2 kB / 339.4 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.007577, allocations: 215.4 kB / 339.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005036/0.008081, allocations: 0.6421 MB / 340.2 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.008084, allocations: 4 kB / 340.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.008084, allocations: 4 kB / 340.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.008091, allocations: 0 / 340.2 MB, free: 9.07 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.00152/0.009612, allocations: 1.236 MB / 341.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.009649, allocations: 12.03 kB / 341.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.009854, allocations: 136.4 kB / 341.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004149/0.01027, allocations: 0.5045 MB / 342.1 MB, free: 7.117 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.01029, allocations: 37.67 kB / 342.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.01035, allocations: 56.38 kB / 342.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.01097, allocations: 0.6297 MB / 342.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.01099, allocations: 192 / 342.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.01102, allocations: 23.94 kB / 342.9 MB, free: 6.316 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/0.01106, allocations: 41.28 kB / 342.9 MB, free: 6.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.01147, allocations: 299.5 kB / 343.2 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.0132, allocations: 1.845 MB / 345 MB, free: 4.078 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.01359, allocations: 254.2 kB / 345.3 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.01374, allocations: 111.5 kB / 345.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.278e-05/0.01384, allocations: 23.98 kB / 345.4 MB, free: 3.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.01385, allocations: 41.39 kB / 345.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.994e-06/0.01386, allocations: 4 kB / 345.5 MB, free: 3.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0005838/0.01444, allocations: 389.7 kB / 345.8 MB, free: 3.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.825e-05/0.01446, allocations: 59.41 kB / 345.9 MB, free: 3.168 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002975/0.01476, allocations: 0.5144 MB / 346.4 MB, free: 2.637 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.01478, allocations: 33.7 kB / 346.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.0149, allocations: 395.5 kB / 346.8 MB, free: 2.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.725e-05/0.01496, allocations: 138.8 kB / 347 MB, free: 2.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.01506, allocations: 127.8 kB / 347.1 MB, free: 1.938 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.549e-05/0.01513, allocations: 0.5508 MB / 347.6 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.01527, allocations: 72.94 kB / 347.7 MB, free: 1.301 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.01545, allocations: 251.9 kB / 348 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.01577, allocations: 343.9 kB / 348.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.01577, allocations: 0 / 348.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004645/0.01623, allocations: 407.1 kB / 348.7 MB, free: 184 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.01625, allocations: 8 kB / 348.7 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.01626, allocations: 4 kB / 348.7 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.01627, allocations: 11.94 kB / 348.7 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.01643, allocations: 87.81 kB / 348.8 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.01644, allocations: 11.94 kB / 348.8 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.01665, allocations: 63.73 kB / 348.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.01668, allocations: 20 kB / 348.9 MB, free: 15.97 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.000149/0.01683, allocations: 202.6 kB / 349.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.635e-05/0.01693, allocations: 75.56 kB / 349.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005522/0.01748, allocations: 398.5 kB / 349.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.01749, allocations: 7.938 kB / 349.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.01749, allocations: 0 / 349.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.0175, allocations: 7.984 kB / 349.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.01857, allocations: 0.9389 MB / 350.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.01857, allocations: 3.938 kB / 350.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.01871, allocations: 63.91 kB / 350.6 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.01872, allocations: 3.938 kB / 350.6 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.01874, allocations: 11.98 kB / 350.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.01875, allocations: 4 kB / 350.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.01875, allocations: 0 / 350.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.01941, allocations: 0.5732 MB / 351.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.01954, allocations: 107.5 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.01958, allocations: 11.94 kB / 351.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.01977, allocations: 39.95 kB / 351.3 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.01996, allocations: 143.7 kB / 351.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.01998, allocations: 23.98 kB / 351.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002118/0.0202, allocations: 322.8 kB / 351.8 MB, free: 12.99 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0202, allocations: 0 / 351.8 MB, free: 12.99 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003245/0.02052, allocations: 155.6 kB / 352 MB, free: 12.84 MB / 282.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 (45): * Single equations (assignments): 44 * 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.000202/0.02072, allocations: 165 kB / 352.1 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.02116, allocations: 281.8 kB / 352.4 MB, free: 12.39 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.02116, allocations: 0 / 352.4 MB, free: 12.39 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.02135, allocations: 152.2 kB / 352.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.02167, allocations: 77.94 kB / 352.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.02301, allocations: 1.046 MB / 353.7 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.595e-05/0.02311, allocations: 163.2 kB / 353.8 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002388/0.02335, allocations: 164.2 kB / 354 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.02346, allocations: 56.48 kB / 354 MB, free: 10.68 MB / 282.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02346, allocations: 0 / 354 MB, free: 10.68 MB / 282.7 MB Notification: Performance of Templates: time 0.00869/0.03215, allocations: 6.776 MB / 360.8 MB, free: 3.977 MB / 282.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: 3.17819581925869]