Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001817/0.001817, allocations: 192 kB / 18 MB, free: 4.977 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1758/0.1758, allocations: 38.02 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3511, allocations: 58.05 MB / 0.5041 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005924/0.357, allocations: 4.8 MB / 0.5088 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.3593, allocations: 1.471 MB / 0.5102 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003461/0.3597, allocations: 18.78 kB / 0.5102 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000447/0.3602, allocations: 118.8 kB / 0.5103 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000823/0.361, allocations: 270.3 kB / 0.5106 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004427/0.3615, allocations: 134.6 kB / 0.5107 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007931/0.3623, allocations: 0.5916 MB / 0.5113 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006087/0.3629, allocations: 391.3 kB / 0.5117 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004023/0.3633, allocations: 243.6 kB / 0.5119 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.3637, allocations: 243.1 kB / 0.5121 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.39e-05/0.3638, allocations: 43.84 kB / 0.5122 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.613e-05/0.3638, allocations: 39.94 kB / 0.5122 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.364, allocations: 121.3 kB / 0.5123 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002171/0.3642, allocations: 218.7 kB / 0.5125 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006531/0.3649, allocations: 0.5101 MB / 0.513 GB, free: 2.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3649, allocations: 0 / 0.513 GB, free: 2.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3649, allocations: 0 / 0.513 GB, free: 2.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.3649, allocations: 1.25 kB / 0.513 GB, free: 2.133 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001268/0.3662, allocations: 0.7042 MB / 0.5137 GB, free: 1.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.3662, allocations: 13.89 kB / 0.5137 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.3663, allocations: 45.75 kB / 0.5138 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.367, allocations: 423.6 kB / 0.5142 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-05/0.3671, allocations: 60.36 kB / 0.5143 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.3671, allocations: 36.42 kB / 0.5143 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007165/0.3679, allocations: 435.5 kB / 0.5147 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.3679, allocations: 5.875 kB / 0.5147 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.3679, allocations: 11.31 kB / 0.5147 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3679, allocations: 12.75 kB / 0.5147 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005053/0.3685, allocations: 273.3 kB / 0.515 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.3706, allocations: 1.84 MB / 0.5168 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.3709, allocations: 173.9 kB / 0.517 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.3711, allocations: 73.84 kB / 0.517 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3712, allocations: 6.281 kB / 0.517 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.3712, allocations: 37.56 kB / 0.5171 GB, free: 15.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.754e-06/0.3712, allocations: 0 / 0.5171 GB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00164/0.3729, allocations: 0.7077 MB / 0.5178 GB, free: 14.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.3729, allocations: 109.7 kB / 0.5179 GB, free: 14.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004441/0.3734, allocations: 319.6 kB / 0.5182 GB, free: 14.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.3734, allocations: 31.39 kB / 0.5182 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.3736, allocations: 238.1 kB / 0.5184 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.014e-05/0.3737, allocations: 69.78 kB / 0.5185 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.3739, allocations: 66.73 kB / 0.5186 GB, free: 14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3741, allocations: 340.8 kB / 0.5189 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.3743, allocations: 75.97 kB / 0.519 GB, free: 13.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.3746, allocations: 199.8 kB / 0.5191 GB, free: 13.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.3751, allocations: 285.8 kB / 0.5194 GB, free: 13.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3751, allocations: 5.062 kB / 0.5194 GB, free: 13.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006187/0.3757, allocations: 328.6 kB / 0.5197 GB, free: 13.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.3757, allocations: 10.88 kB / 0.5197 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.3758, allocations: 5.469 kB / 0.5198 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.3758, allocations: 6.5 kB / 0.5198 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.3761, allocations: 76.77 kB / 0.5198 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.3761, allocations: 15.31 kB / 0.5198 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.3763, allocations: 12.47 kB / 0.5199 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.3764, allocations: 20.75 kB / 0.5199 GB, free: 13.04 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001888/0.3766, allocations: 178.6 kB / 0.52 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/0.3766, allocations: 39.55 kB / 0.5201 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.3771, allocations: 197.9 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3771, allocations: 3.312 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3771, allocations: 5.156 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3771, allocations: 1.219 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009832/0.3781, allocations: 0.6164 MB / 0.5209 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3781, allocations: 4.781 kB / 0.5209 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.3784, allocations: 38.23 kB / 0.5209 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3784, allocations: 2.656 kB / 0.5209 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.3784, allocations: 6.141 kB / 0.5209 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3784, allocations: 10.69 kB / 0.5209 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3784, allocations: 2.109 kB / 0.5209 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006346/0.3791, allocations: 452.5 kB / 0.5214 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/0.3792, allocations: 105.8 kB / 0.5215 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.189e-05/0.3792, allocations: 7.984 kB / 0.5215 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3794, allocations: 2.953 kB / 0.5215 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/0.3795, allocations: 19.73 kB / 0.5215 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3795, allocations: 6.328 kB / 0.5215 GB, free: 11.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.3797, allocations: 216.6 kB / 0.5217 GB, free: 11.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3798, allocations: 1.062 kB / 0.5217 GB, free: 11.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004634/0.3802, allocations: 73.72 kB / 0.5218 GB, free: 11.72 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001226/0.3804, allocations: 106.9 kB / 0.5219 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.3808, allocations: 195.9 kB / 0.5221 GB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3808, allocations: 1.125 kB / 0.5221 GB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.381, allocations: 80.14 kB / 0.5222 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007681/0.3818, allocations: 103.5 kB / 0.5223 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.3834, allocations: 0.8939 MB / 0.5231 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.3838, allocations: 0.8161 MB / 0.5239 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.384, allocations: 48.66 kB / 0.524 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.52e-05/0.3841, allocations: 31 kB / 0.524 GB, free: 10.17 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3841, allocations: 0 / 0.524 GB, free: 10.17 MB / 398.1 MB Notification: Performance of Templates: time 0.007966/0.3921, allocations: 3.445 MB / 0.5274 GB, free: 9.898 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)