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.001446/0.001446, allocations: 92.2 kB / 20.19 MB, free: 4.352 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.001912/0.001912, allocations: 173 kB / 23.49 MB, free: 1.051 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.9722/0.9722, allocations: 177.1 MB / 203.8 MB, free: 5.629 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.008493/0.008493, allocations: 1.991 MB / 262.3 MB, free: 11.12 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.693e-06/1.693e-06, allocations: 0 / 332.1 MB, free: 17.53 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.357e-05, allocations: 8.422 kB / 332.1 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002863/0.002887, allocations: 2.981 MB / 335.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.004306, allocations: 1.336 MB / 336.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.004502, allocations: 19.88 kB / 336.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003009/0.004803, allocations: 95.09 kB / 336.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000783/0.005586, allocations: 417.8 kB / 337 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.00576, allocations: 175.7 kB / 337.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006206/0.006381, allocations: 0.7912 MB / 337.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.006642, allocations: 229.8 kB / 338.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002905/0.006933, allocations: 435.1 kB / 338.6 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.007163, allocations: 303.2 kB / 338.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.007218, allocations: 68 kB / 339 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.007394, allocations: 155.8 kB / 339.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.007539, allocations: 255.2 kB / 339.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.007662, allocations: 215.3 kB / 339.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004934/0.008156, allocations: 0.6382 MB / 340.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.008158, allocations: 0 / 340.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.008159, allocations: 0 / 340.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.008165, allocations: 4 kB / 340.2 MB, free: 9.41 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.00169/0.009855, allocations: 1.247 MB / 341.5 MB, free: 8.125 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.009898, allocations: 8.031 kB / 341.5 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/0.01016, allocations: 132.4 kB / 341.6 MB, free: 7.988 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004884/0.01065, allocations: 0.5045 MB / 342.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.01068, allocations: 37.69 kB / 342.1 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-05/0.01074, allocations: 52.38 kB / 342.2 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007053/0.01145, allocations: 0.6453 MB / 342.8 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.01147, allocations: 192 / 342.8 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.01151, allocations: 19.94 kB / 342.8 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.564e-05/0.01156, allocations: 45.28 kB / 342.9 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.01202, allocations: 295.5 kB / 343.2 MB, free: 6.312 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.01381, allocations: 1.838 MB / 345 MB, free: 4.414 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000411/0.01423, allocations: 258.1 kB / 345.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.01439, allocations: 111.6 kB / 345.4 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.01449, allocations: 23.97 kB / 345.4 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.01452, allocations: 41.39 kB / 345.4 MB, free: 3.961 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.693e-06/0.01452, allocations: 0 / 345.4 MB, free: 3.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006387/0.01516, allocations: 397.6 kB / 345.8 MB, free: 3.566 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.01519, allocations: 55.41 kB / 345.9 MB, free: 3.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003098/0.0155, allocations: 0.5105 MB / 346.4 MB, free: 2.973 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.01552, allocations: 37.7 kB / 346.4 MB, free: 2.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.01566, allocations: 403.5 kB / 346.8 MB, free: 2.531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.075e-05/0.01572, allocations: 138.8 kB / 347 MB, free: 2.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.01582, allocations: 127.8 kB / 347.1 MB, free: 2.262 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.542e-05/0.0159, allocations: 0.543 MB / 347.6 MB, free: 1.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.01604, allocations: 76.94 kB / 347.7 MB, free: 1.629 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.01622, allocations: 247.9 kB / 347.9 MB, free: 1.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.01652, allocations: 339.9 kB / 348.3 MB, free: 0.918 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01652, allocations: 4 kB / 348.3 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004803/0.017, allocations: 414.6 kB / 348.7 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.01702, allocations: 4 kB / 348.7 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.01703, allocations: 4.469 kB / 348.7 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.01704, allocations: 15.94 kB / 348.7 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.01721, allocations: 83.83 kB / 348.8 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.01721, allocations: 11.98 kB / 348.8 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.01741, allocations: 59.7 kB / 348.9 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.01744, allocations: 23.98 kB / 348.9 MB, free: 312 kB / 266.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.0001208/0.01756, allocations: 198.5 kB / 349.1 MB, free: 104 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.963e-05/0.01765, allocations: 79.55 kB / 349.2 MB, free: 24 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005886/0.01824, allocations: 394.7 kB / 349.5 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.01824, allocations: 7.938 kB / 349.6 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.01825, allocations: 0 / 349.6 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.01825, allocations: 3.984 kB / 349.6 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.01933, allocations: 0.9427 MB / 350.5 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01933, allocations: 4 kB / 350.5 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.01947, allocations: 59.91 kB / 350.6 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.01948, allocations: 3.938 kB / 350.6 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.0195, allocations: 15.98 kB / 350.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.01951, allocations: 4 kB / 350.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01951, allocations: 0 / 350.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007122/0.02022, allocations: 0.5771 MB / 351.2 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.02035, allocations: 107.5 kB / 351.3 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.0204, allocations: 15.92 kB / 351.3 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.0206, allocations: 47.98 kB / 351.3 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.02081, allocations: 135.8 kB / 351.5 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.02083, allocations: 23.98 kB / 351.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000218/0.02105, allocations: 318.8 kB / 351.8 MB, free: 13.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02105, allocations: 0 / 351.8 MB, free: 13.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003402/0.02139, allocations: 163.5 kB / 352 MB, free: 13.16 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.0002039/0.02159, allocations: 141.1 kB / 352.1 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.02204, allocations: 293.8 kB / 352.4 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.02204, allocations: 0 / 352.4 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.02224, allocations: 159.2 kB / 352.5 MB, free: 12.56 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.02257, allocations: 81.83 kB / 352.6 MB, free: 12.48 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.024, allocations: 1.039 MB / 353.7 MB, free: 11.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.0241, allocations: 167.1 kB / 353.8 MB, free: 11.22 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002543/0.02436, allocations: 160.3 kB / 354 MB, free: 11.06 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.02447, allocations: 60.48 kB / 354 MB, free: 11 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02447, allocations: 0 / 354 MB, free: 11 MB / 282.7 MB Notification: Performance of Templates: time 0.009061/0.03353, allocations: 6.773 MB / 360.8 MB, free: 4.309 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.2181845100130886]