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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001276/0.001276, allocations: 188.5 kB / 8.353 MB, free: 0.707 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.333/1.333, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001637/0.001637, allocations: 115.1 kB / 248.1 MB, free: 6.363 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1899/0.1899, allocations: 37.92 MB / 330.9 MB, free: 7.312 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.466e-05/1.468e-05, allocations: 0 / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08179/0.08182, allocations: 53.24 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4338, allocations: 106.9 MB / 0.5376 GB, free: 1.387 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.434, allocations: 90.14 kB / 0.5377 GB, free: 1.344 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07133/0.5054, allocations: 25.69 MB / 0.5627 GB, free: 11.92 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5054, allocations: 0 / 0.5627 GB, free: 11.92 MB / 379.1 MB Notification: Performance of Transformations before backend: time 4.581e-05/0.5055, allocations: 16 kB / 0.5628 GB, free: 11.91 MB / 379.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.001829/0.5073, allocations: 0.955 MB / 0.5637 GB, free: 10.95 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.5074, allocations: 12.03 kB / 0.5637 GB, free: 10.94 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004228/0.5078, allocations: 110.2 kB / 0.5638 GB, free: 10.83 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001706/0.5095, allocations: 0.834 MB / 0.5646 GB, free: 10.15 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.862e-05/0.5096, allocations: 63.66 kB / 0.5647 GB, free: 10.08 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.52e-05/0.5097, allocations: 43.62 kB / 0.5647 GB, free: 10.04 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001055/0.5108, allocations: 0.6837 MB / 0.5654 GB, free: 9.609 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.512, allocations: 0.8468 MB / 0.5662 GB, free: 8.938 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.512, allocations: 0 / 0.5662 GB, free: 8.938 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.5121, allocations: 7.984 kB / 0.5662 GB, free: 8.93 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.547e-05/0.5122, allocations: 51.67 kB / 0.5663 GB, free: 8.887 MB / 379.1 MB Warning: The model contains alias variables with conflicting start and/or 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.004786/0.517, allocations: 3.624 MB / 0.5698 GB, free: 5.719 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005959/0.5176, allocations: 396.9 kB / 0.5702 GB, free: 5.43 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/0.518, allocations: 256.4 kB / 0.5704 GB, free: 5.246 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.5181, allocations: 8 kB / 0.5704 GB, free: 5.238 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.5181, allocations: 42.77 kB / 0.5705 GB, free: 5.191 MB / 379.1 MB Notification: Performance of pre-optimization done (n=37): time 5.2e-06/0.5181, allocations: 0 / 0.5705 GB, free: 5.191 MB / 379.1 MB Notification: Performance of matching and sorting (n=55): time 0.007561/0.5257, allocations: 3.199 MB / 0.5736 GB, free: 2.441 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.5258, allocations: 111.2 kB / 0.5737 GB, free: 2.305 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.5262, allocations: 370 kB / 0.5741 GB, free: 2.016 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.5263, allocations: 33.67 kB / 0.5741 GB, free: 1.977 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.5265, allocations: 401.2 kB / 0.5745 GB, free: 1.66 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.5266, allocations: 192.4 kB / 0.5747 GB, free: 1.492 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.5267, allocations: 0 / 0.5747 GB, free: 1.492 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5268, allocations: 364 kB / 0.575 GB, free: 1.152 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003672/0.5272, allocations: 258.2 kB / 0.5753 GB, free: 1 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00053/0.5277, allocations: 495.5 kB / 0.5757 GB, free: 0.5352 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.5282, allocations: 344 kB / 0.5761 GB, free: 332 kB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5282, allocations: 0 / 0.5761 GB, free: 332 kB / 379.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003041/0.5313, allocations: 1.484 MB / 0.5775 GB, free: 15.07 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.5313, allocations: 8 kB / 0.5775 GB, free: 15.06 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.5313, allocations: 11.98 kB / 0.5775 GB, free: 15.05 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.5329, allocations: 492.1 kB / 0.578 GB, free: 14.66 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003996/0.5333, allocations: 111.2 kB / 0.5781 GB, free: 14.55 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.5434, allocations: 9.534 MB / 0.5874 GB, free: 4.672 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005563/0.544, allocations: 19.89 kB / 0.5874 GB, free: 4.652 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/0.5441, allocations: 36.06 kB / 0.5875 GB, free: 4.617 MB / 395.1 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.0002068/0.5443, allocations: 129.2 kB / 0.5876 GB, free: 4.484 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.5444, allocations: 55.34 kB / 0.5876 GB, free: 4.43 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002999/0.5474, allocations: 1.366 MB / 0.589 GB, free: 2.984 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.5474, allocations: 12.19 kB / 0.589 GB, free: 2.973 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5475, allocations: 4 kB / 0.589 GB, free: 2.969 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.5475, allocations: 3.984 kB / 0.589 GB, free: 2.965 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004559/0.552, allocations: 2.192 MB / 0.5911 GB, free: 0.6484 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5521, allocations: 7.922 kB / 0.5911 GB, free: 0.6406 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.5524, allocations: 51.97 kB / 0.5912 GB, free: 0.5898 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001485/0.5539, allocations: 491.8 kB / 0.5917 GB, free: 96 kB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.5539, allocations: 4 kB / 0.5917 GB, free: 92 kB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00948/0.5634, allocations: 9.299 MB / 0.6007 GB, free: 6.215 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5635, allocations: 0 / 0.6007 GB, free: 6.215 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003378/0.5668, allocations: 1.925 MB / 0.6026 GB, free: 4.168 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002575/0.5671, allocations: 184.3 kB / 0.6028 GB, free: 3.969 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.466e-05/0.5672, allocations: 8 kB / 0.6028 GB, free: 3.961 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/0.5676, allocations: 11.98 kB / 0.6028 GB, free: 3.949 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.5677, allocations: 64.41 kB / 0.6029 GB, free: 3.887 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/0.5678, allocations: 20.06 kB / 0.6029 GB, free: 3.867 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0003228/0.5681, allocations: 282.9 kB / 0.6032 GB, free: 3.594 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5681, allocations: 0 / 0.6032 GB, free: 3.594 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001024/0.5691, allocations: 208 kB / 0.6034 GB, free: 3.391 MB / 411.1 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.000237/0.5694, allocations: 147.2 kB / 0.6035 GB, free: 3.234 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.5715, allocations: 1.376 MB / 0.6049 GB, free: 1.805 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5716, allocations: 0 / 0.6049 GB, free: 1.805 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.5732, allocations: 1.051 MB / 0.6059 GB, free: 0.6992 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006441/0.5738, allocations: 106 kB / 0.606 GB, free: 0.5977 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.5758, allocations: 1.24 MB / 0.6072 GB, free: 15.31 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.5765, allocations: 1.068 MB / 0.6082 GB, free: 14.22 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.000357/0.5768, allocations: 97.17 kB / 0.6083 GB, free: 14.12 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.5769, allocations: 35.44 kB / 0.6084 GB, free: 14.09 MB / 427.1 MB Notification: Performance of SimCode: time 3.01e-07/0.5769, allocations: 0 / 0.6084 GB, free: 14.09 MB / 427.1 MB Notification: Performance of Templates: time 0.01868/0.5956, allocations: 11.96 MB / 0.62 GB, free: 2.152 MB / 427.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)