Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") [: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/Complex 3.2.2+maint.om/package.mo): time 0.001676/0.001676, allocations: 190.3 kB / 8.136 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.135/1.135, allocations: 194.2 MB / 202.8 MB, free: 8.773 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00163/0.00163, allocations: 120.9 kB / 247.7 MB, free: 6.273 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1643/0.1643, allocations: 37.92 MB / 330.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.59e-06, allocations: 0 / 389.8 MB, free: 78.13 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07132/0.07135, allocations: 53.22 MB / 443 MB, free: 25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/0.3113, allocations: 106.8 MB / 0.537 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.3116, allocations: 88.33 kB / 0.5371 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07081/0.3824, allocations: 25.46 MB / 0.5619 GB, free: 11.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.059e-05/0.3825, allocations: 27.92 kB / 0.562 GB, free: 11.57 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001779/0.3843, allocations: 0.9482 MB / 0.5629 GB, free: 10.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3844, allocations: 8.031 kB / 0.5629 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004569/0.3848, allocations: 110.8 kB / 0.563 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/0.3865, allocations: 0.841 MB / 0.5638 GB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.089e-05/0.3867, allocations: 55.7 kB / 0.5639 GB, free: 9.746 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.3868, allocations: 40 kB / 0.5639 GB, free: 9.707 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001118/0.3879, allocations: 0.6981 MB / 0.5646 GB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.3892, allocations: 0.8717 MB / 0.5654 GB, free: 8.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.3892, allocations: 7.984 kB / 0.5654 GB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.198e-05/0.3893, allocations: 0 / 0.5654 GB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.3894, allocations: 55.72 kB / 0.5655 GB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.3939, allocations: 3.635 MB / 0.5691 GB, free: 5.332 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003936/0.3943, allocations: 292.4 kB / 0.5693 GB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.3947, allocations: 270.8 kB / 0.5696 GB, free: 4.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.3948, allocations: 11.92 kB / 0.5696 GB, free: 4.898 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/0.3948, allocations: 38.53 kB / 0.5696 GB, free: 4.855 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.793e-06/0.3948, allocations: 4 kB / 0.5696 GB, free: 4.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.008369/0.4032, allocations: 3.243 MB / 0.5728 GB, free: 2.062 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4033, allocations: 111.2 kB / 0.5729 GB, free: 1.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004495/0.4037, allocations: 367.9 kB / 0.5733 GB, free: 1.641 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.4038, allocations: 25.7 kB / 0.5733 GB, free: 1.609 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.404, allocations: 347 kB / 0.5736 GB, free: 1.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.4041, allocations: 180.6 kB / 0.5738 GB, free: 1.141 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.4042, allocations: 0 / 0.5738 GB, free: 1.141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.4044, allocations: 369.9 kB / 0.5741 GB, free: 0.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.4047, allocations: 274.5 kB / 0.5744 GB, free: 0.625 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.4052, allocations: 499 kB / 0.5749 GB, free: 164 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.4057, allocations: 371.5 kB / 0.5752 GB, free: 15.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4057, allocations: 4 kB / 0.5752 GB, free: 15.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003398/0.4091, allocations: 1.487 MB / 0.5767 GB, free: 14.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.4092, allocations: 8.031 kB / 0.5767 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4092, allocations: 8 kB / 0.5767 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.411, allocations: 0.4909 MB / 0.5772 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.4115, allocations: 122.1 kB / 0.5773 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.4219, allocations: 9.231 MB / 0.5863 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/0.4225, allocations: 15.91 kB / 0.5863 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.4226, allocations: 36.02 kB / 0.5864 GB, free: 4.797 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: machine.motor.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] machine.inverter.Vloss:DUMMY_STATE(unit = "V" nominal = 1000.0 protected = true ) type: Real machine.inverter.vPhasor[2]:DUMMY_STATE() "desired {abs(v), phase(v)}" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {3 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002092/0.4228, allocations: 137.5 kB / 0.5865 GB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.423, allocations: 59.25 kB / 0.5866 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.4263, allocations: 1.38 MB / 0.5879 GB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.4263, allocations: 11.91 kB / 0.5879 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4263, allocations: 4 kB / 0.5879 GB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.4263, allocations: 3.984 kB / 0.5879 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004519/0.4308, allocations: 2.205 MB / 0.5901 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4309, allocations: 7.984 kB / 0.5901 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/0.4312, allocations: 51.91 kB / 0.5901 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.4329, allocations: 492 kB / 0.5906 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.433, allocations: 7.938 kB / 0.5906 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009967/0.443, allocations: 9.031 MB / 0.5994 GB, free: 6.617 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.443, allocations: 4 kB / 0.5994 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003752/0.4468, allocations: 1.965 MB / 0.6014 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002712/0.447, allocations: 188.3 kB / 0.6015 GB, free: 4.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.4472, allocations: 0 / 0.6015 GB, free: 4.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.4476, allocations: 12.05 kB / 0.6015 GB, free: 4.309 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.4477, allocations: 32.45 kB / 0.6016 GB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.4477, allocations: 19.98 kB / 0.6016 GB, free: 4.258 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003166/0.4481, allocations: 271.2 kB / 0.6019 GB, free: 3.992 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009657/0.449, allocations: 200.1 kB / 0.602 GB, free: 3.797 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.000238/0.4493, allocations: 151.1 kB / 0.6022 GB, free: 3.641 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002309/0.4516, allocations: 1.322 MB / 0.6035 GB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4516, allocations: 0 / 0.6035 GB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.4533, allocations: 0.9712 MB / 0.6044 GB, free: 1.246 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006546/0.4539, allocations: 108.9 kB / 0.6045 GB, free: 1.141 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.4566, allocations: 1.287 MB / 0.6058 GB, free: 15.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007772/0.4574, allocations: 1.085 MB / 0.6068 GB, free: 14.7 MB / 426.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4574, allocations: 0 / 0.6068 GB, free: 14.7 MB / 426.7 MB Notification: Performance of Templates: time 0.02093/0.4783, allocations: 12.81 MB / 0.6194 GB, free: 1.902 MB / 426.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)