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.0206/0.0206, allocations: 2.548 MB / 9.825 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.001886/0.001886, allocations: 181.7 kB / 10.96 MB, free: 1.898 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.402/1.402, allocations: 221.4 MB / 233.4 MB, free: 4.125 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.0009576/0.0009575, allocations: 86.69 kB / 284.8 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.759e-06/9.949e-06, allocations: 4 kB / 341.9 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1172, allocations: 51 MB / 392.9 MB, free: 3.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3241/0.4414, allocations: 81.58 MB / 474.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4416, allocations: 72.66 kB / 474.5 MB, free: 7.445 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04942/0.4911, allocations: 15.77 MB / 490.3 MB, free: 7.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.474e-05/0.4912, allocations: 21.08 kB / 490.3 MB, free: 7.625 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.003497/0.4947, allocations: 1.048 MB / 491.4 MB, free: 6.531 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.4948, allocations: 8.031 kB / 491.4 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003844/0.4952, allocations: 87.05 kB / 491.4 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005714/0.5009, allocations: 1.855 MB / 493.3 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.617e-05/0.501, allocations: 31.89 kB / 493.3 MB, free: 4.504 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.5012, allocations: 35.98 kB / 493.4 MB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001195/0.5024, allocations: 486.5 kB / 493.8 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.5035, allocations: 0.5848 MB / 494.4 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.5035, allocations: 0 / 494.4 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.362e-05/0.5036, allocations: 0 / 494.4 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.936e-05/0.5037, allocations: 32.98 kB / 494.5 MB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003923/0.5076, allocations: 2.113 MB / 496.6 MB, free: 1.137 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007955/0.5084, allocations: 433.7 kB / 497 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.5087, allocations: 194.1 kB / 497.2 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001675/0.5089, allocations: 174.5 kB / 497.4 MB, free: 304 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.5089, allocations: 42.78 kB / 497.4 MB, free: 252 kB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.224e-06/0.5089, allocations: 0 / 497.4 MB, free: 252 kB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008999/0.5098, allocations: 411.8 kB / 497.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.5099, allocations: 85.09 kB / 497.9 MB, free: 15.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000555/0.5105, allocations: 458 kB / 498.3 MB, free: 15.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.5105, allocations: 25.7 kB / 498.4 MB, free: 15.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.5107, allocations: 295.6 kB / 498.6 MB, free: 14.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.5108, allocations: 126.2 kB / 498.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.5108, allocations: 0 / 498.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.511, allocations: 370.8 kB / 499.1 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.5113, allocations: 177.2 kB / 499.3 MB, free: 14.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.5117, allocations: 366 kB / 499.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.5122, allocations: 227.3 kB / 499.9 MB, free: 13.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.5122, allocations: 0 / 499.9 MB, free: 13.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001005/0.5132, allocations: 0.5714 MB / 0.4887 GB, free: 13.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.5132, allocations: 4 kB / 0.4887 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.5132, allocations: 4 kB / 0.4887 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.5133, allocations: 12 kB / 0.4887 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.5137, allocations: 115.8 kB / 0.4889 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.178e-05/0.5137, allocations: 19.92 kB / 0.4889 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/0.5142, allocations: 51.94 kB / 0.4889 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.694e-05/0.5143, allocations: 31.98 kB / 0.489 GB, free: 12.82 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.0001446/0.5144, allocations: 142.7 kB / 0.4891 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.5146, allocations: 55.34 kB / 0.4891 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008824/0.5155, allocations: 491.1 kB / 0.4896 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.5155, allocations: 7.984 kB / 0.4896 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.5155, allocations: 4 kB / 0.4896 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.5155, allocations: 3.938 kB / 0.4896 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.5176, allocations: 1.248 MB / 0.4908 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.5177, allocations: 4 kB / 0.4909 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.5179, allocations: 55.91 kB / 0.4909 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.5179, allocations: 4 kB / 0.4909 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.518, allocations: 11.98 kB / 0.4909 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.518, allocations: 4 kB / 0.4909 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/0.518, allocations: 8.25 kB / 0.4909 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001265/0.5193, allocations: 0.8911 MB / 0.4918 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.5196, allocations: 184.2 kB / 0.492 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.556e-05/0.5197, allocations: 4 kB / 0.492 GB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.5201, allocations: 19.97 kB / 0.492 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.5203, allocations: 67.89 kB / 0.4921 GB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.316e-05/0.5203, allocations: 23.89 kB / 0.4921 GB, free: 9.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004752/0.5208, allocations: 362.9 kB / 0.4924 GB, free: 9.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006567/0.5215, allocations: 127.6 kB / 0.4926 GB, free: 8.887 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.0002976/0.5218, allocations: 129.2 kB / 0.4927 GB, free: 8.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008142/0.5226, allocations: 444.1 kB / 0.4931 GB, free: 8.316 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5226, allocations: 0 / 0.4931 GB, free: 8.316 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004504/0.5231, allocations: 287.6 kB / 0.4934 GB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004346/0.5235, allocations: 50.17 kB / 0.4934 GB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003467/0.527, allocations: 1.237 MB / 0.4946 GB, free: 6.695 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008937/0.5279, allocations: 1.01 MB / 0.4956 GB, free: 5.66 MB / 378.7 MB Notification: Performance of SimCode: time 4.3e-07/0.5279, allocations: 0 / 0.4956 GB, free: 5.66 MB / 378.7 MB Notification: Performance of Templates: time 0.01267/0.5406, allocations: 5.465 MB / 0.501 GB, free: 232 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)