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.001341/0.001341, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001541/0.001541, allocations: 195 kB / 18 MB, free: 5.105 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.492/1.492, allocations: 205.1 MB / 223.9 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.1728/0.1728, allocations: 37.98 MB / 309.2 MB, free: 5.953 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.001633/0.001633, allocations: 63.91 kB / 431.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.124, allocations: 55.25 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008737/0.1328, allocations: 5.706 MB / 492.8 MB, free: 2.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007173/0.14, allocations: 4.49 MB / 497.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005848/0.1406, allocations: 15.94 kB / 497.3 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.009499/0.1501, allocations: 4.894 MB / 0.4904 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001512/0.1517, allocations: 434 kB / 0.4909 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008911/0.1526, allocations: 271.5 kB / 0.4911 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0026/0.1552, allocations: 1.735 MB / 0.4928 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.1563, allocations: 0.7196 MB / 0.4935 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009391/0.1573, allocations: 482.4 kB / 0.494 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.1584, allocations: 0.506 MB / 0.4945 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002841/0.1587, allocations: 72 kB / 0.4945 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.1593, allocations: 143.7 kB / 0.4947 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005034/0.1598, allocations: 323.3 kB / 0.495 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008099/0.1606, allocations: 394.2 kB / 0.4954 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.1623, allocations: 1.036 MB / 0.4964 GB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.1623, allocations: 4 kB / 0.4964 GB, free: 3.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1623, allocations: 0 / 0.4964 GB, free: 3.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.969e-05/0.1624, allocations: 0 / 0.4964 GB, free: 3.102 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.00274/0.1651, allocations: 1.032 MB / 0.4974 GB, free: 2.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1652, allocations: 15.89 kB / 0.4974 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000547/0.1658, allocations: 95.97 kB / 0.4975 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.1673, allocations: 0.6194 MB / 0.4981 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.1675, allocations: 82.92 kB / 0.4982 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.1676, allocations: 60 kB / 0.4982 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.169, allocations: 0.8099 MB / 0.499 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.1691, allocations: 11.84 kB / 0.499 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.976e-05/0.1691, allocations: 20 kB / 0.4991 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/0.1693, allocations: 53.28 kB / 0.4991 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.1703, allocations: 0.5868 MB / 0.4997 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004502/0.1749, allocations: 2.919 MB / 0.5025 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.1757, allocations: 426.1 kB / 0.5029 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.1761, allocations: 226.3 kB / 0.5032 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.1761, allocations: 8.312 kB / 0.5032 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000493/0.1766, allocations: 343.6 kB / 0.5035 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.766e-06/0.1766, allocations: 0 / 0.5035 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003367/0.18, allocations: 2.037 MB / 0.5055 GB, free: 9.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.1801, allocations: 148.4 kB / 0.5056 GB, free: 9.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.1807, allocations: 449.8 kB / 0.506 GB, free: 8.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.1808, allocations: 33.7 kB / 0.5061 GB, free: 8.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000318/0.1811, allocations: 327.9 kB / 0.5064 GB, free: 8.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.1812, allocations: 161.7 kB / 0.5065 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.1814, allocations: 110.2 kB / 0.5066 GB, free: 8.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1816, allocations: 362.8 kB / 0.507 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.182, allocations: 237.2 kB / 0.5072 GB, free: 7.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.1824, allocations: 393.7 kB / 0.5076 GB, free: 7.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/0.1851, allocations: 1.324 MB / 0.5089 GB, free: 5.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1852, allocations: 4 kB / 0.5089 GB, free: 5.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001764/0.1869, allocations: 0.9666 MB / 0.5098 GB, free: 4.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.6e-05/0.187, allocations: 38.02 kB / 0.5099 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.187, allocations: 11.94 kB / 0.5099 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009158/0.1879, allocations: 309.5 kB / 0.5102 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.189, allocations: 179.8 kB / 0.5104 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006798/0.1958, allocations: 5.294 MB / 0.5155 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004425/0.1962, allocations: 23.98 kB / 0.5155 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.818e-05/0.1963, allocations: 24 kB / 0.5156 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.0004995/0.1968, allocations: 299.6 kB / 0.5159 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1969, allocations: 51.38 kB / 0.5159 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.1983, allocations: 0.8103 MB / 0.5167 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.1983, allocations: 7.938 kB / 0.5167 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.1983, allocations: 0 / 0.5167 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1983, allocations: 7.938 kB / 0.5167 GB, free: 13.2 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002537/0.2009, allocations: 1.674 MB / 0.5183 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.2009, allocations: 0 / 0.5183 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.2022, allocations: 191.9 kB / 0.5185 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002332/0.2024, allocations: 74.53 kB / 0.5186 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.737e-05/0.2025, allocations: 15.92 kB / 0.5186 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003089/0.2056, allocations: 4.257 MB / 0.5228 GB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.2056, allocations: 4.031 kB / 0.5228 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.2071, allocations: 1.124 MB / 0.5239 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.2074, allocations: 176.3 kB / 0.524 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.134e-05/0.2075, allocations: 16 kB / 0.5241 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.2078, allocations: 15.98 kB / 0.5241 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.931e-05/0.2079, allocations: 39.89 kB / 0.5241 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.612e-05/0.208, allocations: 12 kB / 0.5241 GB, free: 4.949 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004039/0.2084, allocations: 319.1 kB / 0.5244 GB, free: 4.637 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2084, allocations: 0 / 0.5244 GB, free: 4.637 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007361/0.2091, allocations: 160 kB / 0.5246 GB, free: 4.48 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%), (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.000182/0.2093, allocations: 123.1 kB / 0.5247 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.2112, allocations: 0.9833 MB / 0.5257 GB, free: 3.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2112, allocations: 3.938 kB / 0.5257 GB, free: 3.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007824/0.212, allocations: 0.6526 MB / 0.5263 GB, free: 2.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.2127, allocations: 126 kB / 0.5264 GB, free: 2.496 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.2156, allocations: 1.648 MB / 0.528 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2642/0.4798, allocations: 0.9791 MB / 0.529 GB, free: 51.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005361/0.4804, allocations: 115.8 kB / 0.5291 GB, free: 51.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.4806, allocations: 38.88 kB / 0.5291 GB, free: 51.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4806, allocations: 1.062 kB / 0.5291 GB, free: 51.16 MB / 414.1 MB Notification: Performance of Templates: time 0.01915/0.4997, allocations: 8.729 MB / 0.5377 GB, free: 50.48 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)