Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00155/0.001551, 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.285/1.285, allocations: 194.2 MB / 212.2 MB, free: 2.359 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.001704/0.001704, allocations: 120.9 kB / 256.6 MB, free: 4.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1694/0.1694, allocations: 37.94 MB / 338.8 MB, free: 2.234 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 67.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08522/0.08639, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007077/0.09351, allocations: 8.303 MB / 462.3 MB, free: 8.223 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006327/0.09988, allocations: 5.532 MB / 467.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.101, allocations: 59.62 kB / 467.9 MB, free: 2.613 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009054/0.11, allocations: 5.639 MB / 473.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001435/0.1115, allocations: 489.9 kB / 474 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.1126, allocations: 407.4 kB / 474.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003151/0.1157, allocations: 2.951 MB / 477.4 MB, free: 9.125 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.1169, allocations: 0.7985 MB / 478.2 MB, free: 8.316 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000844/0.1177, allocations: 0.5213 MB / 478.7 MB, free: 7.793 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008388/0.1186, allocations: 0.7435 MB / 479.4 MB, free: 7.047 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1187, allocations: 56 kB / 479.5 MB, free: 6.992 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004797/0.1192, allocations: 223.7 kB / 479.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003695/0.1196, allocations: 462.7 kB / 480.1 MB, free: 6.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004677/0.12, allocations: 0.5285 MB / 480.7 MB, free: 5.789 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.1213, allocations: 1.495 MB / 482.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1213, allocations: 0 / 482.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1213, allocations: 0 / 482.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1213, allocations: 0 / 482.2 MB, free: 4.289 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002654/0.124, allocations: 1.47 MB / 483.6 MB, free: 2.758 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.124, allocations: 12.03 kB / 483.7 MB, free: 2.746 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000552/0.1246, allocations: 147.5 kB / 483.8 MB, free: 2.602 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.1262, allocations: 0.8702 MB / 484.7 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.884e-05/0.1263, allocations: 62 kB / 484.7 MB, free: 1.625 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.1264, allocations: 87.89 kB / 484.8 MB, free: 1.539 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.1281, allocations: 1.235 MB / 486 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.1281, allocations: 3.938 kB / 486.1 MB, free: 236 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.837e-05/0.1282, allocations: 36 kB / 486.1 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002329/0.1284, allocations: 89.88 kB / 486.2 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.13, allocations: 1.003 MB / 487.2 MB, free: 15.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005967/0.1359, allocations: 4.924 MB / 492.1 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008724/0.1368, allocations: 0.6496 MB / 492.8 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004991/0.1374, allocations: 355.2 kB / 493.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.1374, allocations: 12.56 kB / 493.1 MB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005879/0.138, allocations: 445.8 kB / 493.5 MB, free: 8.461 MB / 346.7 MB Notification: Performance of pre-optimization done (n=62): time 4.679e-06/0.138, allocations: 3.984 kB / 493.6 MB, free: 8.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.005191/0.1432, allocations: 3.265 MB / 496.8 MB, free: 5.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.1433, allocations: 115.4 kB / 496.9 MB, free: 4.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008657/0.1442, allocations: 0.7349 MB / 497.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.1443, allocations: 37.7 kB / 497.7 MB, free: 4.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.1446, allocations: 0.4909 MB / 498.2 MB, free: 3.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.1448, allocations: 244.5 kB / 498.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/0.1451, allocations: 182.5 kB / 498.6 MB, free: 3.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.1453, allocations: 394.8 kB / 499 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005586/0.1458, allocations: 385.8 kB / 499.4 MB, free: 2.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007749/0.1466, allocations: 0.6578 MB / 0.4883 GB, free: 1.605 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.148, allocations: 1.09 MB / 0.4894 GB, free: 396 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.148, allocations: 4 kB / 0.4894 GB, free: 392 kB / 346.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003/0.151, allocations: 1.659 MB / 0.491 GB, free: 14.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-05/0.1511, allocations: 38.2 kB / 0.491 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.1511, allocations: 12 kB / 0.491 GB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/0.1527, allocations: 486.3 kB / 0.4915 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005986/0.1533, allocations: 175.7 kB / 0.4917 GB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008867/0.1622, allocations: 6.502 MB / 0.498 GB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008068/0.163, allocations: 48.03 kB / 0.4981 GB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.935e-05/0.1631, allocations: 43.98 kB / 0.4981 GB, free: 7.109 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 88 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005429/0.1637, allocations: 367.7 kB / 0.4985 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.1638, allocations: 86.88 kB / 0.4985 GB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.1656, allocations: 1.118 MB / 0.4996 GB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.1656, allocations: 8 kB / 0.4996 GB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1656, allocations: 0 / 0.4996 GB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.1657, allocations: 8.047 kB / 0.4997 GB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003121/0.1688, allocations: 2.116 MB / 0.5017 GB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1688, allocations: 0 / 0.5017 GB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007003/0.1695, allocations: 127.8 kB / 0.5018 GB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005005/0.17, allocations: 162.5 kB / 0.502 GB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.1701, allocations: 23.98 kB / 0.502 GB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1971/0.3672, allocations: 4.454 MB / 0.5064 GB, free: 64.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3672, allocations: 3.969 kB / 0.5064 GB, free: 64.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01547/0.3827, allocations: 12.1 MB / 0.5182 GB, free: 56.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.383, allocations: 214.8 kB / 0.5184 GB, free: 56.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.729e-05/0.3831, allocations: 25.7 kB / 0.5184 GB, free: 56.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.3836, allocations: 30.45 kB / 0.5184 GB, free: 56.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.3838, allocations: 54.66 kB / 0.5185 GB, free: 56.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-05/0.3838, allocations: 24.08 kB / 0.5185 GB, free: 56.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006368/0.3845, allocations: 0.5057 MB / 0.519 GB, free: 56.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3845, allocations: 4.172 kB / 0.519 GB, free: 56.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001286/0.3858, allocations: 367.8 kB / 0.5194 GB, free: 56.12 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.motor.i[3],asm.motor.phi_el,asm.motor.w_el,asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,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.0009007/0.3867, allocations: 401.1 kB / 0.5198 GB, free: 55.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.3895, allocations: 1.382 MB / 0.5211 GB, free: 55.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3895, allocations: 1.344 kB / 0.5211 GB, free: 55.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.3909, allocations: 0.7832 MB / 0.5219 GB, free: 54.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009966/0.3919, allocations: 193.9 kB / 0.5221 GB, free: 54.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005669/0.3976, allocations: 3.951 MB / 0.5259 GB, free: 52.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.3983, allocations: 1.178 MB / 0.5271 GB, free: 51.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008462/0.3991, allocations: 253.7 kB / 0.5273 GB, free: 51.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.3994, allocations: 69.77 kB / 0.5274 GB, free: 51.33 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.3994, allocations: 0 / 0.5274 GB, free: 51.33 MB / 362.7 MB Notification: Performance of Templates: time 0.0218/0.4212, allocations: 17.12 MB / 0.5441 GB, free: 37.41 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)