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/ModelicaServices 4.0.0+maint.om/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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 115.4 kB / 17.07 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 190.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1754/0.1754, allocations: 38.02 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 67.89 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3572, allocations: 58.05 MB / 0.5041 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007909/0.3652, allocations: 6.332 MB / 0.5103 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004156/0.3694, allocations: 2.667 MB / 0.5129 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000502/0.3699, allocations: 26.44 kB / 0.5129 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.3711, allocations: 334.7 kB / 0.5132 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.3724, allocations: 0.5935 MB / 0.5138 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006567/0.373, allocations: 288.2 kB / 0.5141 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001281/0.3743, allocations: 1.199 MB / 0.5152 GB, free: 364 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000994/0.3753, allocations: 0.8776 MB / 0.5161 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006338/0.376, allocations: 498.5 kB / 0.5166 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007939/0.3768, allocations: 0.5345 MB / 0.5171 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.3769, allocations: 86.25 kB / 0.5172 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006486/0.3776, allocations: 327.1 kB / 0.5175 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000443/0.3781, allocations: 344.3 kB / 0.5178 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004716/0.3785, allocations: 460.2 kB / 0.5183 GB, free: 15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.3801, allocations: 1.373 MB / 0.5196 GB, free: 14.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3801, allocations: 0 / 0.5196 GB, free: 14.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3801, allocations: 0 / 0.5196 GB, free: 14.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.3801, allocations: 1.312 kB / 0.5196 GB, free: 14.53 MB / 398.1 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.002149/0.3823, allocations: 1.144 MB / 0.5207 GB, free: 13.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.3823, allocations: 13.11 kB / 0.5207 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006483/0.383, allocations: 135.6 kB / 0.5209 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.3841, allocations: 0.6897 MB / 0.5215 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.3842, allocations: 82.75 kB / 0.5216 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.3844, allocations: 68.61 kB / 0.5217 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.386, allocations: 0.9548 MB / 0.5226 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/0.386, allocations: 5.312 kB / 0.5226 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-05/0.3861, allocations: 29.98 kB / 0.5226 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.3862, allocations: 58.25 kB / 0.5227 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.3875, allocations: 0.7759 MB / 0.5235 GB, free: 12.43 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0048/0.3923, allocations: 3.836 MB / 0.5272 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008036/0.3931, allocations: 0.5113 MB / 0.5277 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004239/0.3936, allocations: 236.8 kB / 0.5279 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.3936, allocations: 8.688 kB / 0.5279 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.3937, allocations: 37.72 kB / 0.528 GB, free: 9.262 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.004e-06/0.3937, allocations: 0 / 0.528 GB, free: 9.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01053/0.4042, allocations: 3.757 MB / 0.5316 GB, free: 6.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.4043, allocations: 113.5 kB / 0.5318 GB, free: 6.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000669/0.405, allocations: 0.5283 MB / 0.5323 GB, free: 6.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.405, allocations: 32.55 kB / 0.5323 GB, free: 6.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.4053, allocations: 403.4 kB / 0.5327 GB, free: 6.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.4055, allocations: 185.6 kB / 0.5329 GB, free: 5.879 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.4057, allocations: 130.8 kB / 0.533 GB, free: 5.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4058, allocations: 374.6 kB / 0.5333 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/0.4063, allocations: 280 kB / 0.5336 GB, free: 5.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000597/0.4069, allocations: 0.5063 MB / 0.5341 GB, free: 4.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.4081, allocations: 0.8439 MB / 0.5349 GB, free: 4.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4081, allocations: 2.688 kB / 0.5349 GB, free: 4.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003219/0.4113, allocations: 1.447 MB / 0.5363 GB, free: 3.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.4114, allocations: 12.08 kB / 0.5364 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.4114, allocations: 7.969 kB / 0.5364 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.413, allocations: 455.8 kB / 0.5368 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004463/0.4135, allocations: 114.2 kB / 0.5369 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/0.4248, allocations: 9.133 MB / 0.5458 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008042/0.4256, allocations: 31.2 kB / 0.5459 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-05/0.4257, allocations: 28.59 kB / 0.5459 GB, free: 11.05 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000585/0.4263, allocations: 316.4 kB / 0.5462 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.4265, allocations: 60.56 kB / 0.5462 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.4295, allocations: 1.31 MB / 0.5475 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.4295, allocations: 7.406 kB / 0.5475 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.4295, allocations: 3.219 kB / 0.5475 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4296, allocations: 1.344 kB / 0.5475 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004747/0.4343, allocations: 2.252 MB / 0.5497 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.4343, allocations: 4 kB / 0.5497 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/0.4347, allocations: 63.94 kB / 0.5498 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.436, allocations: 427.1 kB / 0.5502 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.4361, allocations: 12 kB / 0.5502 GB, free: 7.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009774/0.4459, allocations: 8.867 MB / 0.5589 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.4459, allocations: 7.969 kB / 0.5589 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004146/0.4501, allocations: 1.84 MB / 0.5607 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004971/0.4506, allocations: 208.2 kB / 0.5609 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.581e-05/0.4507, allocations: 12 kB / 0.5609 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.4511, allocations: 15.98 kB / 0.5609 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.4513, allocations: 68.48 kB / 0.561 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.4514, allocations: 19.94 kB / 0.561 GB, free: 11.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005186/0.4519, allocations: 366.8 kB / 0.5613 GB, free: 11.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4519, allocations: 0 / 0.5613 GB, free: 11.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001093/0.453, allocations: 252 kB / 0.5616 GB, free: 11.39 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002713/0.4533, allocations: 135.2 kB / 0.5617 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.4554, allocations: 1.346 MB / 0.563 GB, free: 9.844 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4554, allocations: 4 kB / 0.563 GB, free: 9.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.4568, allocations: 0.9667 MB / 0.564 GB, free: 8.824 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009491/0.4577, allocations: 184.4 kB / 0.5642 GB, free: 8.648 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.4605, allocations: 1.668 MB / 0.5658 GB, free: 6.934 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007099/0.4612, allocations: 1.052 MB / 0.5668 GB, free: 5.855 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.4615, allocations: 117.6 kB / 0.5669 GB, free: 5.738 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.4616, allocations: 47.42 kB / 0.567 GB, free: 5.691 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4617, allocations: 0 / 0.567 GB, free: 5.691 MB / 430.1 MB Notification: Performance of Templates: time 0.02371/0.4854, allocations: 15.1 MB / 0.5817 GB, free: 6.699 MB / 446.1 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)