Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 109.8 kB / 17.06 MB, free: 5.82 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.001162/0.001162, allocations: 195.9 kB / 18 MB, free: 4.965 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.363/1.363, 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.168/0.168, allocations: 38.04 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 60.14 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3868, allocations: 58.06 MB / 0.5041 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007092/0.394, allocations: 5.25 MB / 0.5092 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.3966, allocations: 1.57 MB / 0.5108 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003474/0.397, allocations: 15.28 kB / 0.5108 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005135/0.3975, allocations: 130 kB / 0.5109 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.3986, allocations: 314.9 kB / 0.5112 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.3991, allocations: 154.6 kB / 0.5113 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.4003, allocations: 0.6952 MB / 0.512 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008415/0.4012, allocations: 456.3 kB / 0.5125 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005354/0.4017, allocations: 282.9 kB / 0.5127 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006586/0.4024, allocations: 294.7 kB / 0.513 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.4025, allocations: 48.97 kB / 0.5131 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.4027, allocations: 46.78 kB / 0.5131 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.403, allocations: 154.9 kB / 0.5132 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.4033, allocations: 260.3 kB / 0.5135 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008503/0.4041, allocations: 0.5984 MB / 0.5141 GB, free: 1.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4041, allocations: 0.7969 kB / 0.5141 GB, free: 1.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4041, allocations: 0 / 0.5141 GB, free: 1.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.4042, allocations: 1.031 kB / 0.5141 GB, free: 1.465 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001427/0.4056, allocations: 0.7986 MB / 0.5149 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.4056, allocations: 11.2 kB / 0.5149 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.4058, allocations: 54.67 kB / 0.5149 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008925/0.4067, allocations: 464.8 kB / 0.5154 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.4068, allocations: 67.22 kB / 0.5154 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.4069, allocations: 45.75 kB / 0.5155 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.4081, allocations: 0.4961 MB / 0.516 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.4081, allocations: 6.188 kB / 0.516 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.4082, allocations: 16.41 kB / 0.516 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.4082, allocations: 11.03 kB / 0.516 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000835/0.4091, allocations: 344.5 kB / 0.5163 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.4121, allocations: 1.968 MB / 0.5182 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005644/0.4127, allocations: 223.4 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.4129, allocations: 101.2 kB / 0.5186 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.4129, allocations: 3.141 kB / 0.5186 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.413, allocations: 41.59 kB / 0.5186 GB, free: 14.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.413, allocations: 0 / 0.5186 GB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001851/0.4149, allocations: 0.8486 MB / 0.5194 GB, free: 13.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.263e-05/0.4149, allocations: 115.2 kB / 0.5195 GB, free: 13.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.4154, allocations: 332.1 kB / 0.5198 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.4154, allocations: 31.17 kB / 0.5199 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.4157, allocations: 272.8 kB / 0.5201 GB, free: 13.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.222e-05/0.4158, allocations: 88.83 kB / 0.5202 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.4159, allocations: 68.16 kB / 0.5203 GB, free: 13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.416, allocations: 342.1 kB / 0.5206 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.4163, allocations: 88.77 kB / 0.5207 GB, free: 12.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.4166, allocations: 215.4 kB / 0.5209 GB, free: 12.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.4177, allocations: 0.5516 MB / 0.5214 GB, free: 12.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.4178, allocations: 5.125 kB / 0.5214 GB, free: 12.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008313/0.4186, allocations: 423.4 kB / 0.5219 GB, free: 11.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4186, allocations: 10.16 kB / 0.5219 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.4186, allocations: 5.75 kB / 0.5219 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003328/0.419, allocations: 76.66 kB / 0.5219 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.4192, allocations: 61.64 kB / 0.522 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.4213, allocations: 1.939 MB / 0.5239 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.4215, allocations: 18.64 kB / 0.5239 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/0.4216, allocations: 13.92 kB / 0.5239 GB, free: 10.07 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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.0002555/0.4218, allocations: 192.4 kB / 0.5241 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.4219, allocations: 38.77 kB / 0.5241 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.359e-05/0.422, allocations: 42.19 kB / 0.5242 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.422, allocations: 4.125 kB / 0.5242 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.422, allocations: 5.375 kB / 0.5242 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.422, allocations: 1.312 kB / 0.5242 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.4233, allocations: 0.7702 MB / 0.5249 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4233, allocations: 1.375 kB / 0.5249 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.4235, allocations: 48.56 kB / 0.525 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.461e-05/0.4236, allocations: 23.05 kB / 0.525 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.4236, allocations: 6.859 kB / 0.525 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009401/0.4246, allocations: 1.382 MB / 0.5264 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.4246, allocations: 1.625 kB / 0.5264 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007538/0.4254, allocations: 0.5095 MB / 0.5269 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.4255, allocations: 117.5 kB / 0.527 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.4255, allocations: 3.266 kB / 0.527 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.4257, allocations: 10.72 kB / 0.527 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.4258, allocations: 24.86 kB / 0.527 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.4258, allocations: 14.83 kB / 0.527 GB, free: 7.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.4261, allocations: 232.8 kB / 0.5273 GB, free: 7.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4261, allocations: 0 / 0.5273 GB, free: 7.262 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004753/0.4266, allocations: 86.06 kB / 0.5273 GB, free: 7.254 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001155/0.4267, allocations: 103.8 kB / 0.5274 GB, free: 7.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007608/0.4274, allocations: 376.4 kB / 0.5278 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4275, allocations: 0 / 0.5278 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.4278, allocations: 217.4 kB / 0.528 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.4285, allocations: 101.3 kB / 0.5281 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.4301, allocations: 0.9365 MB / 0.529 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.4306, allocations: 0.8406 MB / 0.5298 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.4308, allocations: 52.11 kB / 0.5299 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.764e-05/0.4309, allocations: 27.25 kB / 0.5299 GB, free: 5.445 MB / 398.1 MB Notification: Performance of SimCode: time 1.863e-06/0.4309, allocations: 0 / 0.5299 GB, free: 5.445 MB / 398.1 MB Notification: Performance of Templates: time 0.009992/0.4409, allocations: 4.591 MB / 0.5344 GB, free: 4.078 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)