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.001448/0.001448, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.001157/0.001157, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.479/1.479, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.02 MB / 329.3 MB, free: 9.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00205/0.002051, allocations: 62.72 kB / 398.1 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1602, allocations: 58.07 MB / 456.1 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009325/0.1696, allocations: 6.747 MB / 462.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007752/0.1774, allocations: 4.936 MB / 467.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006552/0.1781, allocations: 39.75 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008586/0.1868, allocations: 4.797 MB / 472.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.1882, allocations: 410.4 kB / 473.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007194/0.189, allocations: 255.7 kB / 473.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002729/0.1917, allocations: 2.288 MB / 475.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009268/0.1927, allocations: 0.618 MB / 476.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008189/0.1935, allocations: 406.5 kB / 476.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006453/0.1941, allocations: 0.5216 MB / 477.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-05/0.1942, allocations: 40 kB / 477.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.1945, allocations: 127.8 kB / 477.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.1948, allocations: 299.2 kB / 477.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000357/0.1952, allocations: 366.2 kB / 478 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008853/0.1961, allocations: 1.008 MB / 479 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1961, allocations: 0 / 479 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1961, allocations: 0 / 479 MB, free: 1.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1961, allocations: 0 / 479 MB, free: 1.613 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.002313/0.1985, allocations: 1.021 MB / 480 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1985, allocations: 8.031 kB / 480 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004412/0.199, allocations: 100.1 kB / 480.1 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.2002, allocations: 0.6076 MB / 480.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.2003, allocations: 79 kB / 480.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.2004, allocations: 59.91 kB / 480.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.2018, allocations: 0.8099 MB / 481.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/0.2018, allocations: 4 kB / 481.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-05/0.2019, allocations: 20 kB / 481.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002734/0.2022, allocations: 49.28 kB / 481.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009565/0.2031, allocations: 0.5984 MB / 482.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004187/0.2073, allocations: 2.942 MB / 485.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007619/0.2081, allocations: 429.7 kB / 485.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.2084, allocations: 226.6 kB / 485.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.2085, allocations: 8 kB / 485.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00058/0.2091, allocations: 342.5 kB / 486.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.364e-06/0.2091, allocations: 0 / 486.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003192/0.2123, allocations: 2.036 MB / 488.3 MB, free: 7.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.2124, allocations: 148.4 kB / 488.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005086/0.2129, allocations: 445.8 kB / 488.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.2129, allocations: 41.73 kB / 488.9 MB, free: 7.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.2133, allocations: 331.9 kB / 489.2 MB, free: 6.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.2134, allocations: 157.8 kB / 489.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/0.2136, allocations: 118.1 kB / 489.5 MB, free: 6.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2138, allocations: 362.8 kB / 489.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004559/0.2142, allocations: 225.2 kB / 490.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005246/0.2148, allocations: 401.7 kB / 490.5 MB, free: 5.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/0.2178, allocations: 1.324 MB / 491.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2178, allocations: 4 kB / 491.8 MB, free: 4.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001858/0.2197, allocations: 0.9669 MB / 492.8 MB, free: 3.113 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.075e-05/0.2198, allocations: 41.64 kB / 492.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.2198, allocations: 4 kB / 492.8 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.2208, allocations: 307.7 kB / 493.1 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009582/0.2218, allocations: 179.7 kB / 493.3 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00728/0.2291, allocations: 4.829 MB / 498.1 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004599/0.2296, allocations: 27.98 kB / 498.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/0.2297, allocations: 27.98 kB / 498.2 MB, free: 13.44 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.0005066/0.2302, allocations: 299.3 kB / 498.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.781e-05/0.2303, allocations: 55.34 kB / 498.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.2315, allocations: 0.8015 MB / 499.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.2315, allocations: 4 kB / 499.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.2315, allocations: 7.938 kB / 499.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2315, allocations: 3.984 kB / 499.3 MB, free: 12.2 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.002491/0.234, allocations: 1.662 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2341, allocations: 3.938 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.2353, allocations: 191.9 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002465/0.2355, allocations: 86.45 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.963e-05/0.2356, allocations: 12 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00289/0.2385, allocations: 3.961 MB / 0.4934 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2385, allocations: 4.031 kB / 0.4934 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.2401, allocations: 1.123 MB / 0.4945 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.2403, allocations: 172.4 kB / 0.4947 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.869e-05/0.2404, allocations: 19.94 kB / 0.4947 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.2407, allocations: 15.98 kB / 0.4947 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.907e-05/0.2408, allocations: 39.83 kB / 0.4947 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.2408, allocations: 16 kB / 0.4947 GB, free: 4.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003828/0.2412, allocations: 319.1 kB / 0.495 GB, free: 3.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2412, allocations: 0 / 0.495 GB, free: 3.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007216/0.242, allocations: 164 kB / 0.4952 GB, free: 3.797 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.0001435/0.2421, allocations: 114.3 kB / 0.4953 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.2439, allocations: 0.9795 MB / 0.4963 GB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2439, allocations: 0 / 0.4963 GB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007866/0.2447, allocations: 0.6383 MB / 0.4969 GB, free: 1.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007287/0.2454, allocations: 133.8 kB / 0.497 GB, free: 1.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.2484, allocations: 1.93 MB / 0.4989 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005851/0.249, allocations: 0.9682 MB / 0.4998 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003865/0.2494, allocations: 120.7 kB / 0.5 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.2496, allocations: 47.42 kB / 0.5 GB, free: 14.71 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2496, allocations: 0 / 0.5 GB, free: 14.71 MB / 398.1 MB Notification: Performance of Templates: time 0.01416/0.2637, allocations: 7.976 MB / 0.5078 GB, free: 6.809 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)