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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001125/0.001125, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.27/1.27, allocations: 194.2 MB / 212.2 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00167/0.00167, allocations: 128.1 kB / 256.6 MB, free: 4.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1623/0.1623, allocations: 37.95 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 63.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07616, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00533/0.08153, allocations: 6.072 MB / 460.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.08359, allocations: 1.874 MB / 461.9 MB, free: 8.582 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002998/0.08391, allocations: 35.81 kB / 462 MB, free: 8.547 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.08424, allocations: 103.3 kB / 462.1 MB, free: 8.445 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005374/0.08483, allocations: 282.5 kB / 462.3 MB, free: 8.168 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.08511, allocations: 143.8 kB / 462.5 MB, free: 8.027 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000613/0.08573, allocations: 0.8876 MB / 463.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003453/0.08609, allocations: 373.9 kB / 463.7 MB, free: 6.77 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.08634, allocations: 258.9 kB / 464 MB, free: 6.516 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.08664, allocations: 286.9 kB / 464.3 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.0867, allocations: 32 kB / 464.3 MB, free: 6.203 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.08678, allocations: 32 kB / 464.3 MB, free: 6.172 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.08689, allocations: 143.5 kB / 464.5 MB, free: 6.031 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.08707, allocations: 246.8 kB / 464.7 MB, free: 5.789 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003433/0.08742, allocations: 0.5723 MB / 465.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.08743, allocations: 0 / 465.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.08744, allocations: 3.938 kB / 465.3 MB, free: 5.211 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.08745, allocations: 4 kB / 465.3 MB, free: 5.207 MB / 314.7 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.001122/0.08858, allocations: 0.7815 MB / 466.1 MB, free: 4.379 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.08863, allocations: 12.03 kB / 466.1 MB, free: 4.367 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.662e-05/0.08871, allocations: 52.28 kB / 466.1 MB, free: 4.316 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005661/0.08928, allocations: 439.6 kB / 466.6 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-05/0.08937, allocations: 62.7 kB / 466.6 MB, free: 3.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.99e-05/0.08944, allocations: 44 kB / 466.7 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/0.09006, allocations: 0.5009 MB / 467.2 MB, free: 3.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.09009, allocations: 3.906 kB / 467.2 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.09013, allocations: 16 kB / 467.2 MB, free: 3.176 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.09014, allocations: 12 kB / 467.2 MB, free: 3.164 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.09064, allocations: 343.6 kB / 467.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.09234, allocations: 1.976 MB / 469.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003507/0.09271, allocations: 231.6 kB / 469.7 MB, free: 496 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.09288, allocations: 94.59 kB / 469.8 MB, free: 392 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.09291, allocations: 0 / 469.8 MB, free: 392 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.09294, allocations: 42.56 kB / 469.9 MB, free: 340 kB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.09294, allocations: 0 / 469.9 MB, free: 340 kB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001805/0.09475, allocations: 1.056 MB / 470.9 MB, free: 15.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.09483, allocations: 106.8 kB / 471 MB, free: 15.06 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.09517, allocations: 341.5 kB / 471.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.0952, allocations: 29.7 kB / 471.4 MB, free: 14.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.09537, allocations: 263.6 kB / 471.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.019e-05/0.09544, allocations: 78.89 kB / 471.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.364e-05/0.09554, allocations: 73.67 kB / 471.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.09567, allocations: 342.8 kB / 472.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.09587, allocations: 91.89 kB / 472.2 MB, free: 13.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000255/0.09613, allocations: 213.1 kB / 472.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.09722, allocations: 0.5601 MB / 473 MB, free: 12.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.09724, allocations: 11.88 kB / 473 MB, free: 12.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008157/0.09806, allocations: 417.8 kB / 473.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.09809, allocations: 8 kB / 473.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.09811, allocations: 8 kB / 473.4 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000317/0.09843, allocations: 72.8 kB / 473.5 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.09869, allocations: 71.84 kB / 473.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.1004, allocations: 1.753 MB / 475.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.1006, allocations: 19.98 kB / 475.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.1006, allocations: 16 kB / 475.4 MB, free: 10.4 MB / 330.7 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 (36): * Single equations (assignments): 35 * 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.0001984/0.1008, allocations: 197.5 kB / 475.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.383e-05/0.1009, allocations: 39.47 kB / 475.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.772e-05/0.101, allocations: 47.38 kB / 475.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.101, allocations: 0 / 475.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.101, allocations: 4 kB / 475.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.101, allocations: 3.984 kB / 475.7 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.1021, allocations: 0.7873 MB / 476.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.1021, allocations: 0 / 476.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.1024, allocations: 55.91 kB / 476.5 MB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.219e-05/0.1024, allocations: 20.84 kB / 476.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.1025, allocations: 4 kB / 476.5 MB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007695/0.1032, allocations: 1.292 MB / 477.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1033, allocations: 0 / 477.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003427/0.1067, allocations: 3.434 MB / 481.2 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.1068, allocations: 120.8 kB / 481.4 MB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.1069, allocations: 8 kB / 481.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.107, allocations: 12.16 kB / 481.4 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.721e-05/0.1071, allocations: 19.97 kB / 481.4 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.1071, allocations: 4.188 kB / 481.4 MB, free: 3.832 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002002/0.1073, allocations: 235.1 kB / 481.6 MB, free: 3.602 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1073, allocations: 0 / 481.6 MB, free: 3.602 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005559/0.1079, allocations: 127.9 kB / 481.8 MB, free: 3.477 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * 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 (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,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.0001157/0.108, allocations: 107.2 kB / 481.9 MB, free: 3.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006893/0.1087, allocations: 375.2 kB / 482.2 MB, free: 2.984 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1087, allocations: 0 / 482.2 MB, free: 2.984 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/0.1091, allocations: 214.7 kB / 482.4 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.1097, allocations: 93.84 kB / 482.5 MB, free: 2.668 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.1116, allocations: 1.425 MB / 484 MB, free: 1.188 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.112, allocations: 0.8504 MB / 484.8 MB, free: 316 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.1123, allocations: 55.25 kB / 484.9 MB, free: 260 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.63e-05/0.1123, allocations: 27.44 kB / 484.9 MB, free: 236 kB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.1123, allocations: 0 / 484.9 MB, free: 236 kB / 330.7 MB Notification: Performance of Templates: time 0.008502/0.1208, allocations: 4.809 MB / 489.7 MB, free: 11.43 MB / 346.7 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)