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/BLDC 1.9.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01585/0.01585, allocations: 2.536 MB / 9.824 MB, free: 444 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009772/0.0009774, allocations: 185.7 kB / 10.97 MB, free: 1.906 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 221.4 MB / 233.4 MB, free: 4.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009609/0.0009608, allocations: 95.03 kB / 284.8 MB, free: 1.078 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.416e-06/8.496e-06, allocations: 0 / 341.8 MB, free: 6.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 51.01 MB / 392.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.4288, allocations: 81.58 MB / 474.4 MB, free: 7.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.4291, allocations: 73 kB / 474.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04886/0.478, allocations: 15.77 MB / 490.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.877e-05/0.4781, allocations: 17.09 kB / 490.3 MB, free: 7.656 MB / 362.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.003164/0.4813, allocations: 1.048 MB / 491.3 MB, free: 6.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4813, allocations: 8.031 kB / 491.3 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.4817, allocations: 83.05 kB / 491.4 MB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005047/0.4867, allocations: 1.859 MB / 493.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.4868, allocations: 31.91 kB / 493.3 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.4869, allocations: 28 kB / 493.3 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009201/0.4878, allocations: 486.5 kB / 493.8 MB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009722/0.4888, allocations: 0.5887 MB / 494.4 MB, free: 3.422 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.4888, allocations: 0 / 494.4 MB, free: 3.422 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.089e-05/0.4889, allocations: 0 / 494.4 MB, free: 3.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.56e-05/0.489, allocations: 32.98 kB / 494.4 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.4926, allocations: 2.117 MB / 496.6 MB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000788/0.4934, allocations: 432.2 kB / 497 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002871/0.4937, allocations: 198.1 kB / 497.2 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.4938, allocations: 170.5 kB / 497.3 MB, free: 340 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.4939, allocations: 46.78 kB / 497.4 MB, free: 284 kB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.4939, allocations: 0 / 497.4 MB, free: 284 kB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009016/0.4948, allocations: 422.7 kB / 497.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.4948, allocations: 81.11 kB / 497.9 MB, free: 15.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.4954, allocations: 461.9 kB / 498.3 MB, free: 15.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.4954, allocations: 25.7 kB / 498.4 MB, free: 15.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.4956, allocations: 287.7 kB / 498.6 MB, free: 14.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.4957, allocations: 130.2 kB / 498.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.4958, allocations: 4 kB / 498.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4959, allocations: 370.8 kB / 499.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.4962, allocations: 177.2 kB / 499.3 MB, free: 14.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.4966, allocations: 366 kB / 499.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.4971, allocations: 216.4 kB / 499.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.411e-05/0.4971, allocations: 4 kB / 499.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001056/0.4982, allocations: 0.5716 MB / 0.4887 GB, free: 13.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.4982, allocations: 8 kB / 0.4887 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.4982, allocations: 4 kB / 0.4887 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.4983, allocations: 15.98 kB / 0.4887 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004066/0.4987, allocations: 107.8 kB / 0.4888 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-05/0.4987, allocations: 19.92 kB / 0.4889 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004821/0.4992, allocations: 47.56 kB / 0.4889 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.686e-05/0.4993, allocations: 28 kB / 0.4889 GB, free: 12.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[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],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001477/0.4994, allocations: 142.9 kB / 0.4891 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.4996, allocations: 55.34 kB / 0.4891 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008878/0.5004, allocations: 491 kB / 0.4896 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.5005, allocations: 8 kB / 0.4896 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5005, allocations: 0 / 0.4896 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5005, allocations: 4 kB / 0.4896 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/0.5025, allocations: 1.248 MB / 0.4908 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5025, allocations: 0 / 0.4908 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.5028, allocations: 55.91 kB / 0.4909 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.5028, allocations: 11.92 kB / 0.4909 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.67e-05/0.5028, allocations: 8 kB / 0.4909 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.5028, allocations: 4 kB / 0.4909 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5028, allocations: 4 kB / 0.4909 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00113/0.504, allocations: 0.8953 MB / 0.4918 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002428/0.5042, allocations: 184.2 kB / 0.492 GB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.168e-05/0.5043, allocations: 4 kB / 0.492 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.5047, allocations: 23.95 kB / 0.492 GB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.5049, allocations: 63.88 kB / 0.492 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-05/0.5049, allocations: 20 kB / 0.4921 GB, free: 9.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000438/0.5054, allocations: 374.9 kB / 0.4924 GB, free: 9.047 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005997/0.506, allocations: 127.6 kB / 0.4925 GB, free: 8.922 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002482/0.5063, allocations: 129.1 kB / 0.4927 GB, free: 8.785 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006896/0.507, allocations: 441 kB / 0.4931 GB, free: 8.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.507, allocations: 4.188 kB / 0.4931 GB, free: 8.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004292/0.5074, allocations: 291.6 kB / 0.4934 GB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.5078, allocations: 46.08 kB / 0.4934 GB, free: 8.023 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.511, allocations: 1.232 MB / 0.4946 GB, free: 6.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007522/0.5118, allocations: 1.014 MB / 0.4956 GB, free: 5.691 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5118, allocations: 0 / 0.4956 GB, free: 5.691 MB / 378.7 MB Notification: Performance of Templates: time 0.01128/0.5231, allocations: 5.462 MB / 0.5009 GB, free: 260 kB / 378.7 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile (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=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)