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.001605/0.001605, allocations: 182.3 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.662/1.662, allocations: 194.3 MB / 208.4 MB, free: 6.707 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.001633/0.001634, allocations: 126.2 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1534/0.1534, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.607e-05, allocations: 11.98 kB / 397.5 MB, free: 1.031 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2676, allocations: 53.23 MB / 450.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4209/0.6886, allocations: 107.5 MB / 0.5452 GB, free: 28.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.6889, allocations: 91.44 kB / 0.5453 GB, free: 28.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06/0.7489, allocations: 25.97 MB / 0.5707 GB, free: 23.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.7489, allocations: 0 / 0.5707 GB, free: 23.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.847e-05/0.749, allocations: 18.97 kB / 0.5707 GB, free: 23.82 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.001623/0.7506, allocations: 0.9545 MB / 0.5716 GB, free: 23.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.7506, allocations: 7.625 kB / 0.5716 GB, free: 23.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003968/0.751, allocations: 108.9 kB / 0.5717 GB, free: 23.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.7526, allocations: 0.8421 MB / 0.5725 GB, free: 22.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.783e-05/0.7527, allocations: 80.16 kB / 0.5726 GB, free: 22.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.7528, allocations: 77.08 kB / 0.5727 GB, free: 22.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.7541, allocations: 0.9437 MB / 0.5736 GB, free: 22.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.7541, allocations: 0 / 0.5736 GB, free: 22.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.637e-05/0.7542, allocations: 28.5 kB / 0.5736 GB, free: 22.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.48e-05/0.7543, allocations: 55.41 kB / 0.5737 GB, free: 22.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009873/0.7553, allocations: 0.7474 MB / 0.5744 GB, free: 22.18 MB / 378.7 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.003889/0.7592, allocations: 3.85 MB / 0.5782 GB, free: 19.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.7597, allocations: 420.2 kB / 0.5786 GB, free: 19.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.7601, allocations: 268.2 kB / 0.5788 GB, free: 19.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.7602, allocations: 8.031 kB / 0.5789 GB, free: 19.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.7602, allocations: 38.06 kB / 0.5789 GB, free: 19.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/0.7602, allocations: 0 / 0.5789 GB, free: 19.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.0101/0.7703, allocations: 3.677 MB / 0.5825 GB, free: 17.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.7704, allocations: 111.2 kB / 0.5826 GB, free: 17.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005069/0.7709, allocations: 451.9 kB / 0.583 GB, free: 17.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.7709, allocations: 33.08 kB / 0.583 GB, free: 17.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.7711, allocations: 399.5 kB / 0.5834 GB, free: 17.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.7713, allocations: 196.7 kB / 0.5836 GB, free: 17.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.7713, allocations: 18.53 kB / 0.5836 GB, free: 17.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.872e-05/0.7714, allocations: 367.5 kB / 0.584 GB, free: 16.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004165/0.7718, allocations: 270.4 kB / 0.5842 GB, free: 16.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.7723, allocations: 0.4921 MB / 0.5847 GB, free: 16.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/0.7727, allocations: 365.9 kB / 0.5851 GB, free: 16.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7727, allocations: 0 / 0.5851 GB, free: 16.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002738/0.7754, allocations: 1.556 MB / 0.5866 GB, free: 15.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.7755, allocations: 11.72 kB / 0.5866 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.7755, allocations: 7.594 kB / 0.5866 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001484/0.777, allocations: 0.4946 MB / 0.5871 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/0.7773, allocations: 112.7 kB / 0.5872 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008189/0.7855, allocations: 9.94 MB / 0.5969 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006558/0.7862, allocations: 29.33 kB / 0.5969 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.375e-05/0.7863, allocations: 41.33 kB / 0.597 GB, free: 8.199 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 54 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.7865, allocations: 153.2 kB / 0.5971 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.7866, allocations: 62.22 kB / 0.5972 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.7893, allocations: 1.432 MB / 0.5986 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.7894, allocations: 3.875 kB / 0.5986 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.7894, allocations: 3.75 kB / 0.5986 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.7894, allocations: 7.859 kB / 0.5986 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003757/0.7932, allocations: 2.347 MB / 0.6009 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.7932, allocations: 3.875 kB / 0.6009 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.7934, allocations: 54.08 kB / 0.6009 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.7948, allocations: 498.6 kB / 0.6014 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.7948, allocations: 13.12 kB / 0.6014 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008123/0.803, allocations: 9.7 MB / 0.6109 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.803, allocations: 0 / 0.6109 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003475/0.8065, allocations: 1.991 MB / 0.6128 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003356/0.8068, allocations: 196.4 kB / 0.613 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/0.8069, allocations: 11.19 kB / 0.613 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/0.8073, allocations: 21.61 kB / 0.6131 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.8075, allocations: 58.02 kB / 0.6131 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.201e-05/0.8076, allocations: 23.08 kB / 0.6131 GB, free: 12.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004615/0.808, allocations: 347.8 kB / 0.6135 GB, free: 12.15 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.808, allocations: 0 / 0.6135 GB, free: 12.15 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009527/0.809, allocations: 241.4 kB / 0.6137 GB, free: 12.11 MB / 394.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.0002691/0.8093, allocations: 163.3 kB / 0.6139 GB, free: 11.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.8115, allocations: 1.428 MB / 0.6153 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.8115, allocations: 4 kB / 0.6153 GB, free: 10.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.8132, allocations: 1.093 MB / 0.6163 GB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007422/0.814, allocations: 168.4 kB / 0.6165 GB, free: 9.746 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.8161, allocations: 1.278 MB / 0.6177 GB, free: 8.426 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.8168, allocations: 1.076 MB / 0.6188 GB, free: 7.324 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000346/0.8172, allocations: 101.7 kB / 0.6189 GB, free: 7.223 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.046e-05/0.8173, allocations: 47.36 kB / 0.6189 GB, free: 7.176 MB / 394.7 MB Notification: Performance of SimCode: time 4.9e-07/0.8173, allocations: 0 / 0.6189 GB, free: 7.176 MB / 394.7 MB Notification: Performance of Templates: time 0.02158/0.8389, allocations: 13.92 MB / 0.6325 GB, free: 9.246 MB / 410.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)