Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 108.5 kB / 17.06 MB, free: 6.023 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.001239/0.00124, allocations: 192 kB / 18 MB, free: 5.105 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1769/0.1769, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.89 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.335, allocations: 58.06 MB / 0.5041 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006125/0.3411, allocations: 5.162 MB / 0.5091 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.344, allocations: 1.985 MB / 0.5111 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002743/0.3443, allocations: 17.72 kB / 0.5111 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005982/0.3449, allocations: 151 kB / 0.5112 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009383/0.3458, allocations: 356.5 kB / 0.5116 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005903/0.3464, allocations: 220.9 kB / 0.5118 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009812/0.3474, allocations: 0.6991 MB / 0.5125 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005965/0.348, allocations: 434.9 kB / 0.5129 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004556/0.3485, allocations: 298.6 kB / 0.5132 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.3489, allocations: 286.4 kB / 0.5134 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.451e-05/0.349, allocations: 46.75 kB / 0.5135 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.3492, allocations: 102 kB / 0.5136 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.3494, allocations: 150.4 kB / 0.5137 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.3496, allocations: 267.3 kB / 0.514 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007811/0.3504, allocations: 0.6552 MB / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3504, allocations: 0 / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3504, allocations: 4 kB / 0.5146 GB, free: 1.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3504, allocations: 0 / 0.5146 GB, free: 1.102 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001525/0.352, allocations: 0.8362 MB / 0.5154 GB, free: 488 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.352, allocations: 9.031 kB / 0.5154 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.3522, allocations: 56.77 kB / 0.5155 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000816/0.353, allocations: 488.3 kB / 0.516 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.353, allocations: 28.31 kB / 0.516 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.501e-05/0.3531, allocations: 36.8 kB / 0.516 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007469/0.3539, allocations: 454.3 kB / 0.5165 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3539, allocations: 3.062 kB / 0.5165 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.3539, allocations: 19.27 kB / 0.5165 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.354, allocations: 9.562 kB / 0.5165 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.3545, allocations: 282 kB / 0.5168 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.3569, allocations: 1.845 MB / 0.5186 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000586/0.3575, allocations: 256.8 kB / 0.5188 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.3577, allocations: 83.3 kB / 0.5189 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.3577, allocations: 6.875 kB / 0.5189 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.3581, allocations: 182.8 kB / 0.5191 GB, free: 13.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.3581, allocations: 0 / 0.5191 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001876/0.3599, allocations: 0.9066 MB / 0.52 GB, free: 13.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.36, allocations: 133.3 kB / 0.5201 GB, free: 13.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.3606, allocations: 404.8 kB / 0.5205 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.3607, allocations: 31.14 kB / 0.5205 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.3609, allocations: 268.8 kB / 0.5208 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.642e-05/0.361, allocations: 90.31 kB / 0.5208 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.3611, allocations: 74.09 kB / 0.5209 GB, free: 12.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3612, allocations: 349.7 kB / 0.5212 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.3614, allocations: 88.73 kB / 0.5213 GB, free: 12.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.3617, allocations: 216 kB / 0.5215 GB, free: 12.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.3621, allocations: 317.1 kB / 0.5218 GB, free: 11.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3621, allocations: 1.281 kB / 0.5218 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008593/0.363, allocations: 433.8 kB / 0.5223 GB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.363, allocations: 6.062 kB / 0.5223 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.363, allocations: 8.562 kB / 0.5223 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004396/0.3635, allocations: 89.53 kB / 0.5224 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.3637, allocations: 67.36 kB / 0.5224 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.3661, allocations: 2.017 MB / 0.5244 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.3664, allocations: 22.52 kB / 0.5244 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.3665, allocations: 17.17 kB / 0.5244 GB, free: 9.797 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002372/0.3667, allocations: 194.5 kB / 0.5246 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.3668, allocations: 39.53 kB / 0.5246 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006157/0.3674, allocations: 307.8 kB / 0.5249 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3674, allocations: 4.688 kB / 0.5249 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3674, allocations: 1.312 kB / 0.5249 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3674, allocations: 2.562 kB / 0.5249 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.3686, allocations: 0.7635 MB / 0.5257 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3687, allocations: 4 kB / 0.5257 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002427/0.3689, allocations: 41.41 kB / 0.5257 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.3691, allocations: 48.45 kB / 0.5258 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.3692, allocations: 8.031 kB / 0.5258 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.3705, allocations: 1.551 MB / 0.5273 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.3705, allocations: 0 / 0.5273 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008016/0.3713, allocations: 0.497 MB / 0.5278 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.3715, allocations: 130.7 kB / 0.5279 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.978e-05/0.3716, allocations: 8.109 kB / 0.5279 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.3718, allocations: 9.812 kB / 0.5279 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.3719, allocations: 30.52 kB / 0.528 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.3719, allocations: 14.86 kB / 0.528 GB, free: 7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003334/0.3723, allocations: 282.8 kB / 0.5282 GB, free: 6.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3723, allocations: 0 / 0.5282 GB, free: 6.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005786/0.3729, allocations: 110.9 kB / 0.5284 GB, free: 6.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009503/0.3738, allocations: 398.1 kB / 0.5287 GB, free: 6.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009047/0.3747, allocations: 407.1 kB / 0.5291 GB, free: 6.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3748, allocations: 5.406 kB / 0.5291 GB, free: 6.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/0.3752, allocations: 245 kB / 0.5294 GB, free: 6.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000733/0.3759, allocations: 124.8 kB / 0.5295 GB, free: 6.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.3778, allocations: 1.084 MB / 0.5305 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004859/0.3783, allocations: 0.8515 MB / 0.5314 GB, free: 4.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002385/0.3785, allocations: 71.48 kB / 0.5314 GB, free: 4.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.016e-05/0.3786, allocations: 33.31 kB / 0.5315 GB, free: 4.832 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3786, allocations: 0 / 0.5315 GB, free: 4.832 MB / 398.1 MB Notification: Performance of Templates: time 0.01495/0.3936, allocations: 6.277 MB / 0.5376 GB, free: 2.441 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)