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.001086/0.001086, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001227/0.001227, allocations: 196 kB / 18.01 MB, free: 5.066 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.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1824/0.1824, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3422, allocations: 58.06 MB / 0.5041 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006384/0.3486, allocations: 5.702 MB / 0.5097 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003189/0.3519, allocations: 2.117 MB / 0.5117 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003395/0.3522, allocations: 19.25 kB / 0.5117 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005431/0.3528, allocations: 174.3 kB / 0.5119 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009604/0.3538, allocations: 420.7 kB / 0.5123 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.3544, allocations: 252.1 kB / 0.5126 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.3555, allocations: 0.8331 MB / 0.5134 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008033/0.3563, allocations: 0.4924 MB / 0.5138 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007766/0.3571, allocations: 364.2 kB / 0.5142 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005961/0.3577, allocations: 340.8 kB / 0.5145 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.594e-05/0.3578, allocations: 53.12 kB / 0.5146 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00029/0.3581, allocations: 102.4 kB / 0.5147 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002553/0.3584, allocations: 181.5 kB / 0.5148 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003583/0.3587, allocations: 303.2 kB / 0.5151 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.3598, allocations: 0.7422 MB / 0.5159 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3598, allocations: 0.75 kB / 0.5159 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3598, allocations: 4 kB / 0.5159 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.3598, allocations: 0 / 0.5159 GB, free: 0.6602 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00161/0.3614, allocations: 0.8898 MB / 0.5167 GB, free: 4 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.3615, allocations: 13.83 kB / 0.5167 GB, free: 0 / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.3616, allocations: 62.27 kB / 0.5168 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009919/0.3626, allocations: 0.5242 MB / 0.5173 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.3627, allocations: 30.69 kB / 0.5173 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.3628, allocations: 50.45 kB / 0.5174 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009244/0.3638, allocations: 0.5162 MB / 0.5179 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.3638, allocations: 2.266 kB / 0.5179 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/0.3638, allocations: 20.34 kB / 0.5179 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-05/0.3639, allocations: 16.48 kB / 0.5179 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006049/0.3645, allocations: 337.2 kB / 0.5183 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.3672, allocations: 2.064 MB / 0.5203 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004443/0.3677, allocations: 227.9 kB / 0.5205 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.3679, allocations: 80.12 kB / 0.5206 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.3679, allocations: 12.38 kB / 0.5206 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003013/0.3682, allocations: 167.2 kB / 0.5207 GB, free: 13.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.3682, allocations: 0 / 0.5207 GB, free: 13.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001749/0.37, allocations: 0.9188 MB / 0.5216 GB, free: 12.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.3701, allocations: 144.1 kB / 0.5218 GB, free: 12.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005526/0.3706, allocations: 431.2 kB / 0.5222 GB, free: 12.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.3707, allocations: 30.73 kB / 0.5222 GB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.3709, allocations: 292 kB / 0.5225 GB, free: 12.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.324e-05/0.371, allocations: 95.14 kB / 0.5226 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.3711, allocations: 77.64 kB / 0.5227 GB, free: 11.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3713, allocations: 358.5 kB / 0.523 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.3715, allocations: 84.28 kB / 0.5231 GB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.3718, allocations: 226.8 kB / 0.5233 GB, free: 11.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004522/0.3722, allocations: 320.9 kB / 0.5236 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3722, allocations: 1.188 kB / 0.5236 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009253/0.3732, allocations: 441.7 kB / 0.524 GB, free: 10.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3732, allocations: 7.672 kB / 0.524 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3732, allocations: 8.156 kB / 0.524 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004527/0.3737, allocations: 92.77 kB / 0.5241 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.3739, allocations: 72.56 kB / 0.5242 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.3762, allocations: 1.831 MB / 0.526 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.3764, allocations: 18.02 kB / 0.526 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.3765, allocations: 18.2 kB / 0.526 GB, free: 9.223 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.0002671/0.3768, allocations: 202.7 kB / 0.5262 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.732e-05/0.3768, allocations: 47 kB / 0.5263 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005982/0.3774, allocations: 280 kB / 0.5265 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3775, allocations: 3.688 kB / 0.5265 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3775, allocations: 5.375 kB / 0.5265 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.3775, allocations: 2.703 kB / 0.5265 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.3789, allocations: 0.7826 MB / 0.5273 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3789, allocations: 0.5625 kB / 0.5273 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.3792, allocations: 53.69 kB / 0.5273 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002105/0.3794, allocations: 50.31 kB / 0.5274 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.3794, allocations: 7.188 kB / 0.5274 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.3808, allocations: 1.545 MB / 0.5289 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3808, allocations: 1.312 kB / 0.5289 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007625/0.3816, allocations: 485.7 kB / 0.5294 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.3818, allocations: 134.5 kB / 0.5295 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.3818, allocations: 12.23 kB / 0.5295 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.3821, allocations: 14.16 kB / 0.5295 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.115e-05/0.3822, allocations: 21.69 kB / 0.5295 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.3822, allocations: 10.17 kB / 0.5296 GB, free: 6.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00042/0.3826, allocations: 297.9 kB / 0.5298 GB, free: 6.293 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3826, allocations: 0 / 0.5298 GB, free: 6.293 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005424/0.3832, allocations: 112.2 kB / 0.5299 GB, free: 6.281 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.0009558/0.3841, allocations: 397.7 kB / 0.5303 GB, free: 6.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008412/0.385, allocations: 397.7 kB / 0.5307 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.385, allocations: 1.281 kB / 0.5307 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004046/0.3854, allocations: 235 kB / 0.5309 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007714/0.3862, allocations: 135.2 kB / 0.5311 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.3885, allocations: 1.182 MB / 0.5322 GB, free: 4.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007167/0.3892, allocations: 0.8816 MB / 0.5331 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003241/0.3895, allocations: 68.75 kB / 0.5331 GB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3896, allocations: 39.81 kB / 0.5332 GB, free: 4.184 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3897, allocations: 0 / 0.5332 GB, free: 4.184 MB / 398.1 MB Notification: Performance of Templates: time 0.01431/0.404, allocations: 6.524 MB / 0.5396 GB, free: 1.305 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)