Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001119/0.001119, allocations: 198.8 kB / 18.01 MB, free: 4.918 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1808/0.1808, allocations: 38.04 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 64.14 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4377/0.4389, allocations: 58.07 MB / 0.5041 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007357/0.4463, allocations: 5.688 MB / 0.5096 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003549/0.4499, allocations: 2.114 MB / 0.5117 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004025/0.4503, allocations: 23.34 kB / 0.5117 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006828/0.451, allocations: 174.1 kB / 0.5119 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.4522, allocations: 419.6 kB / 0.5123 GB, free: 2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007279/0.453, allocations: 250.2 kB / 0.5125 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.4543, allocations: 0.8363 MB / 0.5134 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007459/0.4551, allocations: 0.497 MB / 0.5138 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005485/0.4556, allocations: 351 kB / 0.5142 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005584/0.4562, allocations: 345.4 kB / 0.5145 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.969e-05/0.4563, allocations: 52.78 kB / 0.5146 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.4566, allocations: 101.3 kB / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.4568, allocations: 186.8 kB / 0.5148 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003209/0.4571, allocations: 303.7 kB / 0.5151 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.4582, allocations: 0.7409 MB / 0.5158 GB, free: 356 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4582, allocations: 0 / 0.5158 GB, free: 356 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4582, allocations: 0 / 0.5158 GB, free: 356 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.4582, allocations: 5.25 kB / 0.5159 GB, free: 352 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001929/0.4601, allocations: 0.9077 MB / 0.5167 GB, free: 15.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.867e-05/0.4602, allocations: 17.84 kB / 0.5168 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.4604, allocations: 67.11 kB / 0.5168 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.4616, allocations: 0.5244 MB / 0.5173 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.623e-05/0.4617, allocations: 31.03 kB / 0.5174 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.4618, allocations: 53.42 kB / 0.5174 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.4629, allocations: 0.5127 MB / 0.5179 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.463, allocations: 6.406 kB / 0.5179 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.277e-05/0.463, allocations: 20.31 kB / 0.5179 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.475e-05/0.4631, allocations: 16.77 kB / 0.518 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006344/0.4638, allocations: 333.2 kB / 0.5183 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003015/0.4668, allocations: 2.065 MB / 0.5203 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.4673, allocations: 230.3 kB / 0.5205 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.4675, allocations: 79.47 kB / 0.5206 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.4675, allocations: 7.125 kB / 0.5206 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/0.4678, allocations: 172 kB / 0.5208 GB, free: 12.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.4679, allocations: 0 / 0.5208 GB, free: 12.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001909/0.4698, allocations: 0.9445 MB / 0.5217 GB, free: 12.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.4699, allocations: 135.9 kB / 0.5218 GB, free: 12.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005949/0.4705, allocations: 430.5 kB / 0.5222 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.4705, allocations: 30.86 kB / 0.5222 GB, free: 11.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.4707, allocations: 301.8 kB / 0.5225 GB, free: 11.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.4708, allocations: 90.86 kB / 0.5226 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.471, allocations: 73.34 kB / 0.5227 GB, free: 11.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.4712, allocations: 363.4 kB / 0.523 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.4714, allocations: 83.86 kB / 0.5231 GB, free: 11.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.4717, allocations: 226.8 kB / 0.5233 GB, free: 10.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.4722, allocations: 320.3 kB / 0.5236 GB, free: 10.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4722, allocations: 1.375 kB / 0.5236 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009493/0.4731, allocations: 442 kB / 0.5241 GB, free: 10.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.4732, allocations: 7.438 kB / 0.5241 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.4732, allocations: 4.125 kB / 0.5241 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000445/0.4736, allocations: 93.38 kB / 0.5242 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.4739, allocations: 76.22 kB / 0.5242 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.4762, allocations: 1.84 MB / 0.526 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.4765, allocations: 21.83 kB / 0.5261 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.4765, allocations: 18.09 kB / 0.5261 GB, free: 8.844 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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003603/0.4769, allocations: 208.8 kB / 0.5263 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.853e-05/0.477, allocations: 49.48 kB / 0.5263 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007222/0.4777, allocations: 279.1 kB / 0.5266 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.4777, allocations: 7.531 kB / 0.5266 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4777, allocations: 1.406 kB / 0.5266 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4778, allocations: 2.938 kB / 0.5266 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.4793, allocations: 0.7793 MB / 0.5274 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.4793, allocations: 1.344 kB / 0.5274 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.4796, allocations: 48.53 kB / 0.5274 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002155/0.4798, allocations: 50.58 kB / 0.5274 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.4798, allocations: 7.656 kB / 0.5275 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.4813, allocations: 1.538 MB / 0.529 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4813, allocations: 1.281 kB / 0.529 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009847/0.4823, allocations: 490.4 kB / 0.5294 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.4825, allocations: 131.2 kB / 0.5296 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.623e-05/0.4826, allocations: 11.52 kB / 0.5296 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.4828, allocations: 12.38 kB / 0.5296 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.4829, allocations: 25.52 kB / 0.5296 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.4829, allocations: 6.969 kB / 0.5296 GB, free: 6.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003894/0.4833, allocations: 302.2 kB / 0.5299 GB, free: 5.918 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4833, allocations: 0 / 0.5299 GB, free: 5.918 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005279/0.4838, allocations: 115.6 kB / 0.53 GB, free: 5.902 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0009101/0.4848, allocations: 394.4 kB / 0.5304 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008156/0.4856, allocations: 406.8 kB / 0.5308 GB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4856, allocations: 1.531 kB / 0.5308 GB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004012/0.486, allocations: 232.8 kB / 0.531 GB, free: 5.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007694/0.4868, allocations: 133.6 kB / 0.5311 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.4891, allocations: 1.206 MB / 0.5323 GB, free: 4.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006801/0.4898, allocations: 0.8788 MB / 0.5332 GB, free: 3.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003513/0.4902, allocations: 64.34 kB / 0.5332 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.4903, allocations: 38.58 kB / 0.5333 GB, free: 3.781 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4903, allocations: 0 / 0.5333 GB, free: 3.781 MB / 398.1 MB Notification: Performance of Templates: time 0.01952/0.5098, allocations: 6.525 MB / 0.5396 GB, free: 1.055 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)