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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001307/0.001307, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.001327/0.001328, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1808/0.1808, allocations: 38.08 MB / 330.8 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1324, allocations: 59.15 MB / 459.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009093/0.1416, allocations: 6.333 MB / 466.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007997/0.1496, allocations: 4.847 MB / 471 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005665/0.1502, allocations: 39.75 kB / 471.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007909/0.1582, allocations: 4.575 MB / 475.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.1592, allocations: 406.4 kB / 476.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006234/0.1599, allocations: 255.7 kB / 476.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002649/0.1625, allocations: 2.285 MB / 478.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.1638, allocations: 0.8445 MB / 479.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005512/0.1644, allocations: 390.4 kB / 479.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006479/0.165, allocations: 0.4943 MB / 480.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-05/0.1651, allocations: 32 kB / 480.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002914/0.1654, allocations: 115.8 kB / 480.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002905/0.1657, allocations: 291.2 kB / 480.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003843/0.1661, allocations: 367.9 kB / 481.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.1672, allocations: 0.977 MB / 482.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1672, allocations: 0 / 482.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1673, allocations: 0 / 482.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1673, allocations: 0 / 482.1 MB, free: 0.7383 MB / 350.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.001835/0.1691, allocations: 0.8882 MB / 483 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1692, allocations: 12.03 kB / 483 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004302/0.1696, allocations: 104 kB / 483.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.1707, allocations: 0.6036 MB / 483.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/0.1711, allocations: 75.02 kB / 483.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.1712, allocations: 63.97 kB / 483.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.1725, allocations: 0.8021 MB / 484.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.1725, allocations: 4 kB / 484.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.598e-05/0.1726, allocations: 20 kB / 484.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.1727, allocations: 53.27 kB / 484.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000969/0.1737, allocations: 0.5906 MB / 485.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004539/0.1782, allocations: 2.946 MB / 488.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008992/0.1791, allocations: 436.4 kB / 488.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.1795, allocations: 226.3 kB / 488.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.1795, allocations: 12.66 kB / 488.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004775/0.18, allocations: 342.5 kB / 489.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.18, allocations: 0 / 489.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003288/0.1833, allocations: 2.044 MB / 491.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.1834, allocations: 140.4 kB / 491.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005917/0.184, allocations: 453.8 kB / 491.8 MB, free: 6.469 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.1841, allocations: 33.7 kB / 491.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002764/0.1844, allocations: 331.8 kB / 492.2 MB, free: 6.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1845, allocations: 161.7 kB / 492.4 MB, free: 5.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.1846, allocations: 57.69 kB / 492.4 MB, free: 5.879 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.1848, allocations: 358.8 kB / 492.8 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003662/0.1852, allocations: 237.2 kB / 493 MB, free: 5.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004802/0.1857, allocations: 393.7 kB / 493.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/0.1885, allocations: 1.328 MB / 494.7 MB, free: 3.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1885, allocations: 4 kB / 494.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001937/0.1905, allocations: 0.9709 MB / 495.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/0.1905, allocations: 41.75 kB / 495.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.1905, allocations: 4 kB / 495.7 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009754/0.1915, allocations: 313.5 kB / 496 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009858/0.1925, allocations: 171.7 kB / 496.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006883/0.1994, allocations: 4.852 MB / 0.4893 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/0.1999, allocations: 23.98 kB / 0.4893 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.982e-05/0.2, allocations: 24 kB / 0.4894 GB, free: 12.72 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.0004826/0.2004, allocations: 299.3 kB / 0.4896 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.521e-05/0.2005, allocations: 51.34 kB / 0.4897 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.2018, allocations: 0.8093 MB / 0.4905 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2019, allocations: 4 kB / 0.4905 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2019, allocations: 0 / 0.4905 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2019, allocations: 7.984 kB / 0.4905 GB, free: 11.48 MB / 382.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.002466/0.2043, allocations: 1.669 MB / 0.4921 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.2044, allocations: 0 / 0.4921 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.2057, allocations: 191.9 kB / 0.4923 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002302/0.206, allocations: 74.53 kB / 0.4924 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/0.206, allocations: 19.98 kB / 0.4924 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00348/0.2095, allocations: 3.968 MB / 0.4963 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.2095, allocations: 4.031 kB / 0.4963 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.2111, allocations: 1.127 MB / 0.4974 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.2114, allocations: 172.4 kB / 0.4975 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.576e-05/0.2115, allocations: 15.92 kB / 0.4976 GB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002803/0.2118, allocations: 19.98 kB / 0.4976 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.2119, allocations: 35.89 kB / 0.4976 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/0.2119, allocations: 16 kB / 0.4976 GB, free: 3.543 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004385/0.2124, allocations: 315.1 kB / 0.4979 GB, free: 3.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2124, allocations: 4 kB / 0.4979 GB, free: 3.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000787/0.2132, allocations: 160 kB / 0.4981 GB, free: 3.082 MB / 382.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.0002002/0.2134, allocations: 111.2 kB / 0.4982 GB, free: 2.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.2153, allocations: 0.9761 MB / 0.4991 GB, free: 1.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2153, allocations: 0 / 0.4991 GB, free: 1.945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009017/0.2162, allocations: 0.6372 MB / 0.4998 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007965/0.217, allocations: 133.7 kB / 0.4999 GB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/0.4194, allocations: 2.06 MB / 0.5019 GB, free: 55.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005709/0.42, allocations: 0.9792 MB / 0.5029 GB, free: 55.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004991/0.4206, allocations: 122.8 kB / 0.503 GB, free: 55.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.4207, allocations: 38.03 kB / 0.503 GB, free: 55.05 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4207, allocations: 0 / 0.503 GB, free: 55.05 MB / 382.1 MB Notification: Performance of Templates: time 0.01994/0.4407, allocations: 7.861 MB / 0.5107 GB, free: 54.23 MB / 382.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)