Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.001156/0.001156, allocations: 190.4 kB / 18.67 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1747/0.1747, allocations: 37.99 MB / 309.9 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 63.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1029, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007622/0.1106, allocations: 5.718 MB / 493.5 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006899/0.1175, allocations: 4.487 MB / 498 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005143/0.1181, allocations: 15.94 kB / 498 MB, free: 14.09 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.009081/0.1272, allocations: 4.886 MB / 0.4911 GB, free: 9.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.1283, allocations: 438 kB / 0.4915 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000673/0.129, allocations: 275.5 kB / 0.4918 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00218/0.1312, allocations: 1.727 MB / 0.4935 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009153/0.1321, allocations: 0.7234 MB / 0.4942 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006626/0.1328, allocations: 482.4 kB / 0.4946 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007225/0.1335, allocations: 0.506 MB / 0.4951 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.1336, allocations: 72 kB / 0.4952 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003007/0.134, allocations: 139.8 kB / 0.4953 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000306/0.1343, allocations: 327.2 kB / 0.4956 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004191/0.1347, allocations: 398.1 kB / 0.496 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.1358, allocations: 1.036 MB / 0.497 GB, free: 3.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1358, allocations: 0 / 0.497 GB, free: 3.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1358, allocations: 0 / 0.497 GB, free: 3.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.1358, allocations: 4 kB / 0.497 GB, free: 3.098 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002017/0.1378, allocations: 1.025 MB / 0.498 GB, free: 2.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.1379, allocations: 15.89 kB / 0.4981 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004571/0.1384, allocations: 95.97 kB / 0.4981 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.1396, allocations: 0.6272 MB / 0.4988 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.062e-05/0.1397, allocations: 75.02 kB / 0.4988 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.1399, allocations: 67.92 kB / 0.4989 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.1411, allocations: 0.8098 MB / 0.4997 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.1412, allocations: 7.906 kB / 0.4997 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-05/0.1412, allocations: 23.98 kB / 0.4997 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000141/0.1414, allocations: 53.28 kB / 0.4998 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009216/0.1423, allocations: 0.5867 MB / 0.5003 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/0.1464, allocations: 2.911 MB / 0.5032 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008025/0.1472, allocations: 430.1 kB / 0.5036 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.1476, allocations: 230.3 kB / 0.5038 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.1476, allocations: 4.328 kB / 0.5038 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004845/0.1481, allocations: 343.6 kB / 0.5041 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.886e-06/0.1481, allocations: 0 / 0.5041 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003321/0.1514, allocations: 2.045 MB / 0.5061 GB, free: 9.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/0.1516, allocations: 140.5 kB / 0.5063 GB, free: 9.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005393/0.1521, allocations: 453.7 kB / 0.5067 GB, free: 8.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.1522, allocations: 33.7 kB / 0.5067 GB, free: 8.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002415/0.1524, allocations: 327.9 kB / 0.5071 GB, free: 8.332 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1526, allocations: 157.8 kB / 0.5072 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.1528, allocations: 114.2 kB / 0.5073 GB, free: 8.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1529, allocations: 358.8 kB / 0.5077 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.1533, allocations: 237.2 kB / 0.5079 GB, free: 7.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004667/0.1538, allocations: 397.7 kB / 0.5083 GB, free: 7.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/0.1565, allocations: 1.328 MB / 0.5096 GB, free: 5.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.1566, allocations: 7.938 kB / 0.5096 GB, free: 5.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001794/0.1584, allocations: 0.9589 MB / 0.5105 GB, free: 4.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.1584, allocations: 41.59 kB / 0.5105 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.1584, allocations: 4.375 kB / 0.5105 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009318/0.1594, allocations: 309.5 kB / 0.5108 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009552/0.1603, allocations: 179.7 kB / 0.511 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007019/0.1674, allocations: 5.295 MB / 0.5162 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004527/0.1678, allocations: 23.98 kB / 0.5162 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.388e-05/0.1679, allocations: 24 kB / 0.5162 GB, free: 14.44 MB / 414.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.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004723/0.1684, allocations: 299.6 kB / 0.5165 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-05/0.1685, allocations: 55.36 kB / 0.5166 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.17, allocations: 0.8064 MB / 0.5174 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.17, allocations: 11.86 kB / 0.5174 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.17, allocations: 0 / 0.5174 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/0.1703, allocations: 168.6 kB / 0.5175 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.094e-05/0.1704, allocations: 16 kB / 0.5175 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.1706, allocations: 23.95 kB / 0.5176 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.622e-05/0.1707, allocations: 31.95 kB / 0.5176 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002065/0.1728, allocations: 0.9677 MB / 0.5185 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001247/0.1741, allocations: 1.07 MB / 0.5196 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003299/0.1744, allocations: 244.3 kB / 0.5198 GB, free: 10.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003394/0.1747, allocations: 315.1 kB / 0.5201 GB, free: 10.3 MB / 414.1 MB Notification: Performance of Backend: time 7.21e-07/0.1748, allocations: 0 / 0.5201 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002062/0.1768, allocations: 0.9428 MB / 0.521 GB, free: 9.309 MB / 414.1 MB Notification: Performance of SimCode: time 0.002683/0.1795, allocations: 2.1 MB / 0.5231 GB, free: 7.152 MB / 414.1 MB Notification: Performance of Templates: time 0.2164/0.396, allocations: 9.352 MB / 0.5322 GB, free: 52.3 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)