Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001136/0.001137, 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.234/1.234, 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.001814/0.001814, allocations: 124.9 kB / 256.6 MB, free: 4.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1672/0.1672, allocations: 37.96 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.00185, allocations: 68.08 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1142, allocations: 52.19 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008244/0.1225, allocations: 8.068 MB / 462.1 MB, free: 8.469 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.1282, allocations: 3.331 MB / 465.4 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.1297, allocations: 55.69 kB / 465.4 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.1309, allocations: 330.2 kB / 465.8 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.1323, allocations: 0.5639 MB / 466.3 MB, free: 4.184 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007843/0.1331, allocations: 374.7 kB / 466.7 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.1346, allocations: 1.84 MB / 468.5 MB, free: 1.977 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008759/0.1354, allocations: 0.936 MB / 469.5 MB, free: 1.016 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004585/0.1359, allocations: 489.9 kB / 469.9 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006463/0.1366, allocations: 0.6381 MB / 470.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1367, allocations: 60 kB / 470.6 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005342/0.1372, allocations: 291.5 kB / 470.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.1376, allocations: 351 kB / 471.3 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004569/0.138, allocations: 0.513 MB / 471.8 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.1394, allocations: 1.562 MB / 473.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1394, allocations: 0 / 473.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1394, allocations: 0 / 473.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1394, allocations: 0 / 473.3 MB, free: 13.12 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002616/0.1421, allocations: 1.39 MB / 474.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.251e-05/0.1421, allocations: 8.031 kB / 474.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006396/0.1428, allocations: 159.6 kB / 474.9 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.1441, allocations: 0.77 MB / 475.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.1442, allocations: 69.98 kB / 475.7 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.1444, allocations: 91.84 kB / 475.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.146, allocations: 1.124 MB / 477 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.146, allocations: 3.938 kB / 477 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.1462, allocations: 32 kB / 477 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.606e-05/0.1463, allocations: 65.97 kB / 477.1 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.1477, allocations: 0.9173 MB / 478 MB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005665/0.1534, allocations: 4.425 MB / 482.4 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.1545, allocations: 0.6683 MB / 483.1 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005361/0.155, allocations: 332.2 kB / 483.4 MB, free: 2.656 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.1551, allocations: 12.55 kB / 483.4 MB, free: 2.645 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.1551, allocations: 43.12 kB / 483.4 MB, free: 2.594 MB / 330.7 MB Notification: Performance of pre-optimization done (n=57): time 2.725e-06/0.1551, allocations: 0 / 483.4 MB, free: 2.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=62): time 0.004387/0.1595, allocations: 2.575 MB / 486 MB, free: 15.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.1596, allocations: 137.2 kB / 486.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.1604, allocations: 0.6527 MB / 486.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.1604, allocations: 37.7 kB / 486.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003181/0.1608, allocations: 478.8 kB / 487.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.1609, allocations: 216.8 kB / 487.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.1612, allocations: 142.6 kB / 487.7 MB, free: 14.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.1614, allocations: 382.8 kB / 488 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.1618, allocations: 280.7 kB / 488.3 MB, free: 13.56 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006173/0.1624, allocations: 0.4959 MB / 488.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00332/0.1658, allocations: 1.496 MB / 490.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.1658, allocations: 4 kB / 490.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003333/0.1691, allocations: 1.355 MB / 491.7 MB, free: 9.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.1692, allocations: 8 kB / 491.7 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.1692, allocations: 8 kB / 491.7 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.1709, allocations: 449.5 kB / 492.1 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.1715, allocations: 139.8 kB / 492.2 MB, free: 9.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008738/0.1802, allocations: 6.084 MB / 498.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007296/0.181, allocations: 39.97 kB / 498.4 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.356e-05/0.181, allocations: 28 kB / 498.4 MB, free: 2.93 MB / 346.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.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008666/0.1819, allocations: 0.5096 MB / 498.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005871/0.1825, allocations: 495.5 kB / 499.4 MB, free: 1.832 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003152/0.1857, allocations: 1.469 MB / 0.4891 GB, free: 256 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.108e-06/0.1857, allocations: 0 / 0.4891 GB, free: 256 kB / 346.7 MB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.002521/0.1882, allocations: 1.277 MB / 0.4904 GB, free: 14.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1883, allocations: 12.06 kB / 0.4904 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1883, allocations: 8 kB / 0.4904 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.1897, allocations: 421.3 kB / 0.4908 GB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.1902, allocations: 139.8 kB / 0.4909 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007513/0.1977, allocations: 5.905 MB / 0.4967 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007086/0.1984, allocations: 35.98 kB / 0.4967 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.1985, allocations: 39.92 kB / 0.4968 GB, free: 8.109 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0002579/0.1988, allocations: 224.1 kB / 0.497 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.1989, allocations: 75.06 kB / 0.497 GB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.2002, allocations: 0.7338 MB / 0.4978 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.2002, allocations: 8 kB / 0.4978 GB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2002, allocations: 4 kB / 0.4978 GB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2002, allocations: 4.078 kB / 0.4978 GB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.203, allocations: 1.743 MB / 0.4995 GB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.203, allocations: 0 / 0.4995 GB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006755/0.2037, allocations: 143.8 kB / 0.4996 GB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.028e-05/0.2038, allocations: 28.89 kB / 0.4996 GB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.2038, allocations: 19.98 kB / 0.4997 GB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009147/0.2047, allocations: 1.28 MB / 0.5009 GB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2048, allocations: 4.031 kB / 0.5009 GB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2517/0.4564, allocations: 8.107 MB / 0.5088 GB, free: 61.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.4568, allocations: 213.1 kB / 0.509 GB, free: 61.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.013e-05/0.4569, allocations: 19.23 kB / 0.5091 GB, free: 61.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.4573, allocations: 26.56 kB / 0.5091 GB, free: 61.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.4575, allocations: 43.2 kB / 0.5091 GB, free: 61.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-05/0.4575, allocations: 17.62 kB / 0.5091 GB, free: 61.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007117/0.4582, allocations: 463.5 kB / 0.5096 GB, free: 61.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4583, allocations: 0 / 0.5096 GB, free: 61.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002125/0.4604, allocations: 0.5669 MB / 0.5101 GB, free: 61.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * 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 (66): * Single equations (assignments): 64 * 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.0003228/0.4607, allocations: 136.9 kB / 0.5103 GB, free: 61.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003303/0.464, allocations: 1.899 MB / 0.5121 GB, free: 60.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.4641, allocations: 0 / 0.5121 GB, free: 60.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006904/0.4648, allocations: 442.4 kB / 0.5125 GB, free: 60.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.4659, allocations: 203.9 kB / 0.5127 GB, free: 60.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.4701, allocations: 2.972 MB / 0.5156 GB, free: 58.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007143/0.4709, allocations: 1.132 MB / 0.5167 GB, free: 57.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008932/0.4718, allocations: 232.1 kB / 0.517 GB, free: 57.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.472, allocations: 68.89 kB / 0.517 GB, free: 57.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/0.472, allocations: 3.391 kB / 0.517 GB, free: 57.73 MB / 362.7 MB Notification: Performance of Templates: time 0.02862/0.5006, allocations: 19 MB / 0.5356 GB, free: 45.74 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)