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.0009752/0.0009752, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.00119/0.00119, allocations: 169 kB / 23.27 MB, free: 1.223 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.9435/0.9435, allocations: 177.2 MB / 203.7 MB, free: 5.52 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.01158/0.01158, allocations: 1.999 MB / 262.3 MB, free: 10.93 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: 3.938 kB / 332.6 MB, free: 16.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.187e-05, allocations: 6.25 kB / 332.6 MB, free: 16.93 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003651/0.003673, allocations: 2.961 MB / 335.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.005851, allocations: 1.332 MB / 336.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002965/0.006148, allocations: 19.88 kB / 336.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003855/0.006533, allocations: 99.11 kB / 337 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.007704, allocations: 417.7 kB / 337.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.008009, allocations: 175.7 kB / 337.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009482/0.008957, allocations: 0.7796 MB / 338.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003583/0.009316, allocations: 229.8 kB / 338.6 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.009846, allocations: 0.4912 MB / 339.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.01016, allocations: 287.2 kB / 339.3 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.194e-05/0.01024, allocations: 60 kB / 339.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004196/0.01066, allocations: 163.8 kB / 339.6 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.01084, allocations: 247.2 kB / 339.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.011, allocations: 211.4 kB / 340 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006486/0.01165, allocations: 0.6343 MB / 340.6 MB, free: 8.824 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.01165, allocations: 0 / 340.6 MB, free: 8.824 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01165, allocations: 0 / 340.6 MB, free: 8.824 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.01166, allocations: 0 / 340.6 MB, free: 8.824 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.002094/0.01375, allocations: 1.22 MB / 341.9 MB, free: 7.566 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.01379, allocations: 8.031 kB / 341.9 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.01408, allocations: 128.4 kB / 342 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005862/0.01467, allocations: 0.4967 MB / 342.5 MB, free: 6.906 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.0147, allocations: 37.69 kB / 342.5 MB, free: 6.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/0.01477, allocations: 48.38 kB / 342.6 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007668/0.01554, allocations: 0.5945 MB / 343.2 MB, free: 6.172 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.01556, allocations: 4.188 kB / 343.2 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.01561, allocations: 31.92 kB / 343.2 MB, free: 6.137 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.118e-05/0.01566, allocations: 41.28 kB / 343.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.01611, allocations: 230.1 kB / 343.5 MB, free: 5.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.01847, allocations: 1.879 MB / 345.4 MB, free: 3.918 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.01889, allocations: 203.3 kB / 345.6 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.01905, allocations: 87.56 kB / 345.6 MB, free: 3.617 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001026/0.01915, allocations: 27.98 kB / 345.7 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.01917, allocations: 45.38 kB / 345.7 MB, free: 3.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 2.104e-06/0.01917, allocations: 0 / 345.7 MB, free: 3.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007442/0.01992, allocations: 329.1 kB / 346 MB, free: 3.207 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.958e-05/0.01994, allocations: 59.41 kB / 346.1 MB, free: 3.137 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.02035, allocations: 0.5101 MB / 346.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.02038, allocations: 37.7 kB / 346.6 MB, free: 2.566 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.02057, allocations: 407.5 kB / 347 MB, free: 2.164 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.831e-05/0.02066, allocations: 142.8 kB / 347.2 MB, free: 2.023 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.02082, allocations: 127.7 kB / 347.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.02093, allocations: 0.5507 MB / 347.8 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.02108, allocations: 64.88 kB / 347.9 MB, free: 1.266 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.02131, allocations: 243.2 kB / 348.1 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.02169, allocations: 330.4 kB / 348.5 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.02169, allocations: 0 / 348.5 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006562/0.02235, allocations: 381.2 kB / 348.8 MB, free: 172 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.02236, allocations: 10.81 kB / 348.9 MB, free: 164 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.02237, allocations: 7.938 kB / 348.9 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.02239, allocations: 8 kB / 348.9 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.02263, allocations: 83.83 kB / 349 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.02264, allocations: 11.94 kB / 349 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.02298, allocations: 59.75 kB / 349 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.02303, allocations: 19.94 kB / 349 MB, free: 15.97 MB / 282.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.0002101/0.02324, allocations: 206.4 kB / 349.2 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.0234, allocations: 67.62 kB / 349.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007249/0.02412, allocations: 355.1 kB / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.02414, allocations: 4 kB / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.02414, allocations: 0 / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.02415, allocations: 7.984 kB / 349.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.02551, allocations: 0.7954 MB / 350.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.02551, allocations: 3.984 kB / 350.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.02572, allocations: 51.91 kB / 350.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.02573, allocations: 7.938 kB / 350.5 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.02577, allocations: 15.98 kB / 350.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.02577, allocations: 0 / 350.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.02577, allocations: 0 / 350.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008752/0.02665, allocations: 0.502 MB / 351 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.02682, allocations: 99.44 kB / 351.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.223e-05/0.02688, allocations: 19.91 kB / 351.2 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.0272, allocations: 35.95 kB / 351.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.02737, allocations: 67.89 kB / 351.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/0.0274, allocations: 19.92 kB / 351.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002569/0.02766, allocations: 302.7 kB / 351.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.02766, allocations: 0 / 351.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005112/0.02817, allocations: 159.6 kB / 351.7 MB, free: 13.21 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 (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.0002362/0.02841, allocations: 153.1 kB / 351.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005074/0.02892, allocations: 240.9 kB / 352.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.02892, allocations: 0 / 352.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.02919, allocations: 136.5 kB / 352.2 MB, free: 12.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.02965, allocations: 77.94 kB / 352.3 MB, free: 12.6 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.03142, allocations: 1.022 MB / 353.3 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.03157, allocations: 166.6 kB / 353.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.03187, allocations: 80.28 kB / 353.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.0322, allocations: 178.1 kB / 353.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of SimCode: time 9.01e-07/0.0322, allocations: 7.938 kB / 353.8 MB, free: 11.1 MB / 282.7 MB Notification: Performance of Templates: time 0.02508/0.05728, allocations: 7.223 MB / 361 MB, free: 3.945 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: 2.915764704812318]