Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001299/0.001299, allocations: 170.6 kB / 15.77 MB, free: 6.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.4 MB / 221.9 MB, free: 13.72 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007331/0.0007332, allocations: 86.3 kB / 270.3 MB, free: 13.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1671/0.1671, allocations: 38.06 MB / 356.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003806, allocations: 8 kB / 422.7 MB, free: 26.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 56.34 MB / 479.1 MB, free: 2.004 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007833/0.1086, allocations: 7.329 MB / 486.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005042/0.1137, allocations: 3.177 MB / 489.6 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007151/0.1144, allocations: 51.69 kB / 489.6 MB, free: 7.406 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006232/0.115, allocations: 262.2 kB / 489.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.1164, allocations: 0.618 MB / 490.5 MB, free: 6.527 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008997/0.1173, allocations: 379.4 kB / 490.9 MB, free: 6.156 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001643/0.119, allocations: 1.574 MB / 492.4 MB, free: 4.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.1202, allocations: 0.968 MB / 493.4 MB, free: 3.562 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005816/0.1208, allocations: 462 kB / 493.9 MB, free: 3.109 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007235/0.1216, allocations: 0.5759 MB / 494.4 MB, free: 2.531 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.1217, allocations: 44 kB / 494.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005152/0.1222, allocations: 275.5 kB / 494.8 MB, free: 2.219 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.1225, allocations: 331 kB / 495.1 MB, free: 1.895 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.1227, allocations: 225.1 kB / 495.3 MB, free: 1.668 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.1239, allocations: 1.286 MB / 496.6 MB, free: 388 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1239, allocations: 0 / 496.6 MB, free: 388 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1239, allocations: 0 / 496.6 MB, free: 388 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.124, allocations: 0 / 496.6 MB, free: 388 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002348/0.1263, allocations: 1.234 MB / 497.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1264, allocations: 12.03 kB / 497.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006311/0.127, allocations: 170.4 kB / 498 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.1283, allocations: 0.7731 MB / 498.8 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.1284, allocations: 69.98 kB / 498.8 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.1286, allocations: 84 kB / 498.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.1303, allocations: 1.157 MB / 0.4884 GB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.1304, allocations: 7.984 kB / 0.4884 GB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.512e-05/0.1305, allocations: 40 kB / 0.4884 GB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.1306, allocations: 61.94 kB / 0.4885 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.1321, allocations: 0.9523 MB / 0.4894 GB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005789/0.1379, allocations: 4.648 MB / 0.4939 GB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.139, allocations: 0.6908 MB / 0.4946 GB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005788/0.1396, allocations: 352.5 kB / 0.4949 GB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.275e-05/0.1397, allocations: 8.734 kB / 0.4949 GB, free: 5.688 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.1397, allocations: 43.06 kB / 0.495 GB, free: 5.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=58): time 2.715e-06/0.1397, allocations: 4 kB / 0.495 GB, free: 5.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=62): time 0.004744/0.1445, allocations: 2.362 MB / 0.4973 GB, free: 3.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/0.1446, allocations: 141.1 kB / 0.4974 GB, free: 3.027 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000804/0.1454, allocations: 0.6841 MB / 0.4981 GB, free: 2.336 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.1454, allocations: 37.7 kB / 0.4981 GB, free: 2.293 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002799/0.1457, allocations: 498.8 kB / 0.4986 GB, free: 1.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.1459, allocations: 216.9 kB / 0.4988 GB, free: 1.582 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.1459, allocations: 16 kB / 0.4988 GB, free: 1.566 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1461, allocations: 386.7 kB / 0.4992 GB, free: 1.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.1466, allocations: 273.8 kB / 0.4995 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006236/0.1472, allocations: 0.5198 MB / 0.5 GB, free: 292 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002503/0.1497, allocations: 0.818 MB / 0.5008 GB, free: 15.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.1497, allocations: 4 kB / 0.5008 GB, free: 15.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003276/0.153, allocations: 1.406 MB / 0.5021 GB, free: 14.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002164/0.1533, allocations: 311.9 kB / 0.5024 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.1533, allocations: 11.98 kB / 0.5025 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.1549, allocations: 466.2 kB / 0.5029 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.1554, allocations: 147.7 kB / 0.503 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009053/0.1645, allocations: 6.216 MB / 0.5091 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006749/0.1652, allocations: 43.97 kB / 0.5092 GB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.1653, allocations: 39.94 kB / 0.5092 GB, free: 6.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.1653, allocations: 4 kB / 0.5092 GB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002533/0.1678, allocations: 1.191 MB / 0.5104 GB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.1679, allocations: 8.344 kB / 0.5104 GB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.1693, allocations: 433.2 kB / 0.5108 GB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.1698, allocations: 147.7 kB / 0.5109 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2199/0.3898, allocations: 5.902 MB / 0.5167 GB, free: 48.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007573/0.3906, allocations: 33.58 kB / 0.5167 GB, free: 48.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.783e-05/0.3906, allocations: 37.52 kB / 0.5168 GB, free: 48.62 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 sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006342/0.3913, allocations: 406.6 kB / 0.5171 GB, free: 48.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.3914, allocations: 81.42 kB / 0.5172 GB, free: 48.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001331/0.3928, allocations: 0.7418 MB / 0.5179 GB, free: 48.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.3928, allocations: 8.266 kB / 0.5179 GB, free: 48.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3928, allocations: 5.312 kB / 0.518 GB, free: 48.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.3928, allocations: 4.172 kB / 0.518 GB, free: 48.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3957, allocations: 1.774 MB / 0.5197 GB, free: 47.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3957, allocations: 4.141 kB / 0.5197 GB, free: 47.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007254/0.3964, allocations: 139.7 kB / 0.5198 GB, free: 47.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.3965, allocations: 25.36 kB / 0.5199 GB, free: 47.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.3966, allocations: 16.88 kB / 0.5199 GB, free: 47.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007226/0.3973, allocations: 1.286 MB / 0.5211 GB, free: 46.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3973, allocations: 2.125 kB / 0.5211 GB, free: 46.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.3991, allocations: 1.226 MB / 0.5223 GB, free: 45.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003143/0.3994, allocations: 211.1 kB / 0.5225 GB, free: 45.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.476e-05/0.3995, allocations: 18.05 kB / 0.5225 GB, free: 45.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.4, allocations: 32.19 kB / 0.5226 GB, free: 45.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.4001, allocations: 43.69 kB / 0.5226 GB, free: 45.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.941e-05/0.4001, allocations: 21.06 kB / 0.5226 GB, free: 45.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006717/0.4008, allocations: 474.3 kB / 0.5231 GB, free: 45.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4008, allocations: 0 / 0.5231 GB, free: 45.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001713/0.4025, allocations: 413.7 kB / 0.5235 GB, free: 45.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002973/0.4028, allocations: 137.9 kB / 0.5236 GB, free: 45.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.4064, allocations: 1.975 MB / 0.5255 GB, free: 44.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4064, allocations: 1.75 kB / 0.5255 GB, free: 44.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006413/0.4071, allocations: 454.7 kB / 0.526 GB, free: 44.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.4082, allocations: 215.7 kB / 0.5262 GB, free: 44.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.4122, allocations: 2.628 MB / 0.5287 GB, free: 42.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007806/0.413, allocations: 1.121 MB / 0.5298 GB, free: 41.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.4133, allocations: 62.64 kB / 0.5299 GB, free: 41.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4133, allocations: 0 / 0.5299 GB, free: 41.97 MB / 362.7 MB Notification: Performance of Templates: time 0.02133/0.4346, allocations: 18.95 MB / 0.5484 GB, free: 29.71 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)