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.001153/0.001153, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001267/0.001267, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.402/1.402, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1738/0.1738, allocations: 38.02 MB / 329.4 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 65.94 kB / 398.3 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1156, allocations: 58.06 MB / 456.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.01064/0.1263, allocations: 6.759 MB / 463.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008362/0.1348, allocations: 4.768 MB / 467.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001176/0.136, allocations: 43.75 kB / 467.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009902/0.1459, allocations: 4.956 MB / 472.9 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.1475, allocations: 414.4 kB / 473.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008301/0.1484, allocations: 247.6 kB / 473.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.1509, allocations: 1.774 MB / 475.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.1522, allocations: 0.7469 MB / 476 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008508/0.1531, allocations: 474.4 kB / 476.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008456/0.154, allocations: 0.545 MB / 477 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.1541, allocations: 72 kB / 477.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003786/0.1545, allocations: 135.9 kB / 477.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000376/0.1549, allocations: 335.1 kB / 477.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006107/0.1555, allocations: 402.2 kB / 478 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.1567, allocations: 1.02 MB / 479 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1567, allocations: 0 / 479 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1568, allocations: 4 kB / 479 MB, free: 1.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.477e-05/0.1568, allocations: 0 / 479 MB, free: 1.668 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.002238/0.159, allocations: 1.032 MB / 480 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1591, allocations: 11.89 kB / 480 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/0.1596, allocations: 96.06 kB / 480.1 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.1608, allocations: 0.6039 MB / 480.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.953e-05/0.1609, allocations: 82.92 kB / 480.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.161, allocations: 63.75 kB / 480.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.1623, allocations: 0.8021 MB / 481.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/0.1623, allocations: 11.92 kB / 481.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.196e-05/0.1624, allocations: 23.98 kB / 481.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.1626, allocations: 53.28 kB / 481.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009751/0.1635, allocations: 0.5906 MB / 482.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.1677, allocations: 2.931 MB / 485.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.1685, allocations: 434 kB / 485.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.1688, allocations: 226.7 kB / 485.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.854e-05/0.1689, allocations: 4 kB / 485.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000507/0.1694, allocations: 342.5 kB / 486.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.815e-06/0.1694, allocations: 0 / 486.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003378/0.1728, allocations: 2.04 MB / 488.3 MB, free: 7.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/0.1729, allocations: 144.5 kB / 488.4 MB, free: 7.723 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005147/0.1734, allocations: 445.8 kB / 488.9 MB, free: 7.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.1735, allocations: 33.7 kB / 488.9 MB, free: 7.238 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/0.1737, allocations: 331.8 kB / 489.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.1739, allocations: 161.7 kB / 489.4 MB, free: 6.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.1741, allocations: 114.2 kB / 489.5 MB, free: 6.629 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1742, allocations: 362.8 kB / 489.9 MB, free: 6.266 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.1746, allocations: 237.2 kB / 490.1 MB, free: 6.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/0.1751, allocations: 393.7 kB / 490.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002762/0.1778, allocations: 1.331 MB / 491.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1779, allocations: 0 / 491.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001892/0.1798, allocations: 0.9708 MB / 492.8 MB, free: 3.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/0.1798, allocations: 29.7 kB / 492.8 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.1798, allocations: 8 kB / 492.8 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009375/0.1808, allocations: 309.5 kB / 493.1 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009055/0.1817, allocations: 179.8 kB / 493.3 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006833/0.1886, allocations: 5.306 MB / 498.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.189, allocations: 23.98 kB / 498.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.829e-05/0.1891, allocations: 27.98 kB / 498.6 MB, free: 13.01 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 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.0004653/0.1896, allocations: 303.2 kB / 498.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.1898, allocations: 59.28 kB / 499 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.191, allocations: 0.8015 MB / 499.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.191, allocations: 7.938 kB / 499.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.1911, allocations: 4 kB / 499.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1911, allocations: 4 kB / 499.8 MB, free: 11.76 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.002641/0.1937, allocations: 1.658 MB / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1937, allocations: 0 / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.1951, allocations: 195.9 kB / 0.4899 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004006/0.1955, allocations: 78.53 kB / 0.49 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.117e-05/0.1956, allocations: 19.92 kB / 0.49 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004157/0.1997, allocations: 4.261 MB / 0.4942 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1998, allocations: 0 / 0.4942 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.2014, allocations: 1.123 MB / 0.4953 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.2018, allocations: 172.4 kB / 0.4954 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.2019, allocations: 19.89 kB / 0.4954 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/0.2023, allocations: 15.98 kB / 0.4955 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.2024, allocations: 35.89 kB / 0.4955 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.2024, allocations: 23.94 kB / 0.4955 GB, free: 3.508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000433/0.2029, allocations: 315.1 kB / 0.4958 GB, free: 3.203 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2029, allocations: 0 / 0.4958 GB, free: 3.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009279/0.2038, allocations: 164 kB / 0.496 GB, free: 3.043 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.0002082/0.204, allocations: 111.2 kB / 0.4961 GB, free: 2.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.2063, allocations: 1.046 MB / 0.4971 GB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2063, allocations: 0 / 0.4971 GB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008272/0.2071, allocations: 0.6408 MB / 0.4977 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007766/0.2079, allocations: 143.6 kB / 0.4979 GB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/0.211, allocations: 1.927 MB / 0.4997 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.2118, allocations: 0.9721 MB / 0.5007 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004524/0.2122, allocations: 116.7 kB / 0.5008 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.2124, allocations: 39.44 kB / 0.5008 GB, free: 13.89 MB / 398.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2124, allocations: 0 / 0.5008 GB, free: 13.89 MB / 398.1 MB Notification: Performance of Templates: time 0.01458/0.227, allocations: 8.357 MB / 0.509 GB, free: 5.605 MB / 398.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)