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.001591/0.001591, allocations: 110.2 kB / 17.75 MB, free: 5.352 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.001775/0.001775, allocations: 185.4 kB / 18.68 MB, free: 4.426 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.353/1.353, allocations: 222.9 MB / 242.4 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.1775/0.1775, allocations: 38.03 MB / 330.6 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.88 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2908, allocations: 58.05 MB / 0.5048 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006985/0.2978, allocations: 5.259 MB / 0.5099 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.3001, allocations: 1.573 MB / 0.5114 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002906/0.3004, allocations: 16.28 kB / 0.5114 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003573/0.3008, allocations: 124.5 kB / 0.5116 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006386/0.3014, allocations: 320.8 kB / 0.5119 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.3018, allocations: 154.7 kB / 0.512 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007049/0.3025, allocations: 0.6924 MB / 0.5127 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004691/0.303, allocations: 459.8 kB / 0.5131 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.3033, allocations: 292.6 kB / 0.5134 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000359/0.3036, allocations: 290.2 kB / 0.5137 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.121e-05/0.3037, allocations: 46.19 kB / 0.5137 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.649e-05/0.3038, allocations: 46.69 kB / 0.5138 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.304, allocations: 155.3 kB / 0.5139 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002278/0.3042, allocations: 260.4 kB / 0.5142 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.3048, allocations: 0.5992 MB / 0.5148 GB, free: 1.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.3049, allocations: 0 / 0.5148 GB, free: 1.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3049, allocations: 0 / 0.5148 GB, free: 1.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.3049, allocations: 5.219 kB / 0.5148 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.001114/0.306, allocations: 0.7993 MB / 0.5155 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.306, allocations: 13.67 kB / 0.5156 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.824e-05/0.3061, allocations: 54.77 kB / 0.5156 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.3068, allocations: 460.6 kB / 0.5161 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.718e-05/0.3068, allocations: 67.59 kB / 0.5161 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.398e-05/0.3069, allocations: 45.14 kB / 0.5162 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007275/0.3077, allocations: 0.4974 MB / 0.5166 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.3077, allocations: 5.031 kB / 0.5166 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.679e-05/0.3077, allocations: 17.41 kB / 0.5167 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3078, allocations: 10.62 kB / 0.5167 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006144/0.3084, allocations: 344.3 kB / 0.517 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002538/0.3109, allocations: 1.968 MB / 0.5189 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004934/0.3114, allocations: 223.9 kB / 0.5191 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.3117, allocations: 100.7 kB / 0.5192 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3117, allocations: 6.594 kB / 0.5192 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.3117, allocations: 41.14 kB / 0.5193 GB, free: 14.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.763e-06/0.3117, allocations: 1.219 kB / 0.5193 GB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001569/0.3133, allocations: 0.8486 MB / 0.5201 GB, free: 13.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.3134, allocations: 114.2 kB / 0.5202 GB, free: 13.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.3137, allocations: 331.2 kB / 0.5205 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.3138, allocations: 31.02 kB / 0.5206 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.314, allocations: 278.9 kB / 0.5208 GB, free: 13.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.139e-05/0.314, allocations: 88.39 kB / 0.5209 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-05/0.3142, allocations: 67.31 kB / 0.521 GB, free: 13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3143, allocations: 345.6 kB / 0.5213 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.3145, allocations: 84.91 kB / 0.5214 GB, free: 12.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.3148, allocations: 209.7 kB / 0.5216 GB, free: 12.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.3159, allocations: 0.5518 MB / 0.5221 GB, free: 12.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.316, allocations: 2.406 kB / 0.5221 GB, free: 12.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008458/0.3168, allocations: 417.3 kB / 0.5225 GB, free: 11.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3168, allocations: 12.05 kB / 0.5225 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3169, allocations: 4.375 kB / 0.5225 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/0.3172, allocations: 78.88 kB / 0.5226 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.3174, allocations: 62.75 kB / 0.5227 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.3195, allocations: 1.935 MB / 0.5246 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.3197, allocations: 18.5 kB / 0.5246 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.3198, allocations: 13.8 kB / 0.5246 GB, free: 10.08 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.0002171/0.32, allocations: 191 kB / 0.5248 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.403e-05/0.3201, allocations: 40.7 kB / 0.5248 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.011e-05/0.3202, allocations: 42.33 kB / 0.5249 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3202, allocations: 5.75 kB / 0.5249 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3202, allocations: 5.75 kB / 0.5249 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.3203, allocations: 121 kB / 0.525 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.206e-05/0.3203, allocations: 7.047 kB / 0.525 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.3205, allocations: 6.469 kB / 0.525 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.3206, allocations: 18.48 kB / 0.525 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007983/0.3214, allocations: 0.4935 MB / 0.5255 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007525/0.3222, allocations: 0.6275 MB / 0.5261 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002018/0.3224, allocations: 83.89 kB / 0.5262 GB, free: 8.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002309/0.3226, allocations: 228.3 kB / 0.5264 GB, free: 8.781 MB / 398.1 MB Notification: Performance of Backend: time 5.61e-07/0.3227, allocations: 0 / 0.5264 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.3237, allocations: 389.4 kB / 0.5268 GB, free: 8.523 MB / 398.1 MB Notification: Performance of SimCode: time 0.001888/0.3256, allocations: 1.454 MB / 0.5282 GB, free: 7.449 MB / 398.1 MB Notification: Performance of Templates: time 0.009501/0.3351, allocations: 4.815 MB / 0.5329 GB, free: 6.18 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)