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.0008371/0.0008371, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001045/0.001883, 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.0007367/0.0007367, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001017/0.001754, 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 1.095/1.095, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09189/1.187, 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/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.008109/0.008109, allocations: 1.992 MB / 246.1 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001759/0.009868, allocations: 1.036 MB / 247.2 MB, free: 11.73 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.613e-06/1.613e-06, allocations: 0 / 248.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.517e-05/1.678e-05, allocations: 6.312 kB / 248.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002953/0.00297, allocations: 3.026 MB / 251.5 MB, free: 7.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.004568, allocations: 1.394 MB / 252.9 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.004728, allocations: 11.94 kB / 252.9 MB, free: 6 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.004916, allocations: 103.1 kB / 253 MB, free: 5.898 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00068/0.005596, allocations: 413.7 kB / 253.4 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.005799, allocations: 167.8 kB / 253.5 MB, free: 5.328 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006958/0.006495, allocations: 0.7834 MB / 254.3 MB, free: 4.539 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.006755, allocations: 239.7 kB / 254.6 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004276/0.007182, allocations: 0.5231 MB / 255.1 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.007426, allocations: 287.2 kB / 255.4 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.007487, allocations: 60 kB / 255.4 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002077/0.007694, allocations: 171.7 kB / 255.6 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.007838, allocations: 203.4 kB / 255.8 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.007959, allocations: 163.6 kB / 256 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005145/0.008473, allocations: 0.5759 MB / 256.5 MB, free: 2.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.008481, allocations: 0 / 256.5 MB, free: 2.332 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.008481, allocations: 0 / 256.5 MB, free: 2.332 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.00849, allocations: 4 kB / 256.5 MB, free: 2.328 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.001704/0.01019, allocations: 1.311 MB / 257.8 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.01023, allocations: 12.03 kB / 257.9 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.01043, allocations: 100.8 kB / 258 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.01088, allocations: 443.2 kB / 258.4 MB, free: 412 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.01091, allocations: 41.69 kB / 258.4 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.01096, allocations: 48.38 kB / 258.5 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.01155, allocations: 0.5978 MB / 259.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.01156, allocations: 192 / 259.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.01159, allocations: 27.94 kB / 259.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.139e-05/0.01163, allocations: 37.3 kB / 259.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.01191, allocations: 209.1 kB / 259.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.01361, allocations: 1.498 MB / 260.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.01391, allocations: 245.8 kB / 261.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.389e-05/0.01401, allocations: 68.81 kB / 261.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.01412, allocations: 36.08 kB / 261.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.01414, allocations: 46.5 kB / 261.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 1.834e-06/0.01414, allocations: 4 kB / 261.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0003927/0.01454, allocations: 251 kB / 261.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.491e-05/0.01456, allocations: 55.41 kB / 261.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.01482, allocations: 434.9 kB / 262 MB, free: 12.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.01484, allocations: 33.7 kB / 262 MB, free: 12.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.01497, allocations: 286 kB / 262.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.946e-05/0.01505, allocations: 130.8 kB / 262.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.946e-05/0.01515, allocations: 110.1 kB / 262.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.01524, allocations: 366.7 kB / 262.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.299e-05/0.01534, allocations: 59.78 kB / 262.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.01548, allocations: 188.1 kB / 263.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.01575, allocations: 301.2 kB / 263.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.01575, allocations: 4 kB / 263.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0003643/0.01612, allocations: 292.1 kB / 263.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.01613, allocations: 8 kB / 263.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01614, allocations: 4 kB / 263.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.01615, allocations: 7.938 kB / 263.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.01633, allocations: 99.88 kB / 263.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.01634, allocations: 7.938 kB / 263.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.01652, allocations: 64 kB / 263.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.01655, allocations: 23.98 kB / 263.9 MB, free: 10.57 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.0001347/0.01668, allocations: 162.5 kB / 264.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.034e-05/0.01676, allocations: 43.95 kB / 264.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003717/0.01713, allocations: 295.2 kB / 264.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.01714, allocations: 7.938 kB / 264.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.01714, allocations: 0 / 264.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.01715, allocations: 4 kB / 264.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007144/0.01786, allocations: 0.6763 MB / 265.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01786, allocations: 0 / 265.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.01801, allocations: 71.89 kB / 265.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.028e-05/0.0181, allocations: 83.41 kB / 265.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.0181, allocations: 0 / 265.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.01812, allocations: 15.98 kB / 265.2 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.01812, allocations: 8 kB / 265.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01812, allocations: 0 / 265.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004351/0.01856, allocations: 445.3 kB / 265.7 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.0186, allocations: 11.94 kB / 265.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.01877, allocations: 35.95 kB / 265.7 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.01887, allocations: 63.89 kB / 265.8 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.01889, allocations: 11.98 kB / 265.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001274/0.01902, allocations: 180.4 kB / 266 MB, free: 8.422 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01902, allocations: 0 / 266 MB, free: 8.422 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.0193, allocations: 155.6 kB / 266.1 MB, free: 8.27 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.0001719/0.01948, allocations: 138.3 kB / 266.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003033/0.01978, allocations: 231.4 kB / 266.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.319e-05/0.01979, allocations: 16 kB / 266.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.01996, allocations: 149 kB / 266.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.02032, allocations: 341.9 kB / 267 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003761/0.02408, allocations: 1.036 MB / 268 MB, free: 6.293 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.732e-05/0.02418, allocations: 158.7 kB / 268.2 MB, free: 6.121 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.02435, allocations: 84.27 kB / 268.3 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.02457, allocations: 155.3 kB / 268.4 MB, free: 5.883 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02457, allocations: 4 kB / 268.4 MB, free: 5.879 MB / 266.7 MB Notification: Performance of Templates: time 0.1196/0.1442, allocations: 7.23 MB / 275.6 MB, free: 18.83 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.961053474806249]