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.0007686/0.0007686, allocations: 87.2 kB / 16.31 MB, free: 6.453 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.0008329/0.0008329, allocations: 184 kB / 17.21 MB, free: 6.324 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.354/1.354, allocations: 205.4 MB / 223.4 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2978/0.2978, allocations: 38.05 MB / 309.7 MB, free: 8.867 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.0005872/0.0005878, allocations: 18.17 kB / 376.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1184, allocations: 56.33 MB / 432.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006682/0.1252, allocations: 5.994 MB / 438.8 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006722/0.1319, allocations: 4.491 MB / 443.3 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007699/0.1328, allocations: 39.75 kB / 443.4 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00781/0.1406, allocations: 4.399 MB / 447.8 MB, free: 7.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001334/0.1419, allocations: 485.7 kB / 448.3 MB, free: 7.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000812/0.1428, allocations: 239.6 kB / 448.5 MB, free: 7.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002485/0.1453, allocations: 1.949 MB / 450.4 MB, free: 5.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.1466, allocations: 0.7865 MB / 451.2 MB, free: 4.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006383/0.1472, allocations: 394.5 kB / 451.6 MB, free: 4.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000623/0.1478, allocations: 490.3 kB / 452.1 MB, free: 3.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-05/0.1479, allocations: 36 kB / 452.1 MB, free: 3.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.1482, allocations: 71.88 kB / 452.2 MB, free: 3.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000265/0.1484, allocations: 287.2 kB / 452.5 MB, free: 3.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.1486, allocations: 165.3 kB / 452.6 MB, free: 2.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006907/0.1493, allocations: 0.787 MB / 453.4 MB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.1493, allocations: 3.984 kB / 453.4 MB, free: 2.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1493, allocations: 4 kB / 453.4 MB, free: 2.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.1494, allocations: 0 / 453.4 MB, free: 2.176 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.00153/0.1509, allocations: 0.8959 MB / 454.3 MB, free: 1.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.1509, allocations: 15.97 kB / 454.3 MB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003744/0.1513, allocations: 99.03 kB / 454.4 MB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009203/0.1522, allocations: 0.5876 MB / 455 MB, free: 488 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-05/0.1523, allocations: 75 kB / 455.1 MB, free: 408 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1524, allocations: 63.91 kB / 455.2 MB, free: 344 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1979/0.3504, allocations: 0.8022 MB / 456 MB, free: 52.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/0.3505, allocations: 0 / 456 MB, free: 52.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.3505, allocations: 30.2 kB / 456 MB, free: 52.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/0.3507, allocations: 51.77 kB / 456 MB, free: 52.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007846/0.3515, allocations: 0.5829 MB / 456.6 MB, free: 52.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.3547, allocations: 2.941 MB / 459.6 MB, free: 51.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006431/0.3553, allocations: 428.1 kB / 460 MB, free: 51.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.3557, allocations: 224.6 kB / 460.2 MB, free: 51.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.3557, allocations: 4.672 kB / 460.2 MB, free: 51.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004002/0.3561, allocations: 344.1 kB / 460.5 MB, free: 51.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.034e-06/0.3561, allocations: 3.875 kB / 460.5 MB, free: 51.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.002654/0.3588, allocations: 2.055 MB / 462.6 MB, free: 50.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.3588, allocations: 140.3 kB / 462.7 MB, free: 50.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004481/0.3593, allocations: 445.2 kB / 463.2 MB, free: 50.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.3593, allocations: 37.22 kB / 463.2 MB, free: 50.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.3595, allocations: 326.2 kB / 463.5 MB, free: 49.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.663e-05/0.3596, allocations: 163 kB / 463.7 MB, free: 49.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.3597, allocations: 11.12 kB / 463.7 MB, free: 49.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.776e-05/0.3598, allocations: 357.6 kB / 464 MB, free: 49.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.3601, allocations: 238.2 kB / 464.3 MB, free: 49.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.3604, allocations: 396.3 kB / 464.7 MB, free: 49.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.3621, allocations: 0.7469 MB / 465.4 MB, free: 48.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3621, allocations: 3.5 kB / 465.4 MB, free: 48.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001456/0.3636, allocations: 0.9614 MB / 466.4 MB, free: 48.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.3636, allocations: 37.61 kB / 466.4 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3636, allocations: 3 kB / 466.4 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007699/0.3644, allocations: 316 kB / 466.7 MB, free: 48.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007574/0.3652, allocations: 181.2 kB / 466.9 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004858/0.37, allocations: 4.848 MB / 471.8 MB, free: 44.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.3704, allocations: 24.02 kB / 471.8 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.3705, allocations: 26.56 kB / 471.8 MB, free: 44.55 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,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003941/0.3709, allocations: 300 kB / 472.1 MB, free: 44.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.683e-05/0.371, allocations: 53.97 kB / 472.1 MB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009677/0.3719, allocations: 0.8106 MB / 473 MB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.3719, allocations: 6.906 kB / 473 MB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.372, allocations: 0 / 473 MB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.372, allocations: 4.547 kB / 473 MB, free: 43.79 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.001774/0.3737, allocations: 1.676 MB / 474.6 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3738, allocations: 0 / 474.6 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.3748, allocations: 188 kB / 474.8 MB, free: 42.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.375, allocations: 84.8 kB / 474.9 MB, free: 42.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.058e-05/0.3751, allocations: 17.88 kB / 474.9 MB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.3768, allocations: 3.941 MB / 478.9 MB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3768, allocations: 3.594 kB / 478.9 MB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3779, allocations: 1.126 MB / 480 MB, free: 38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.3781, allocations: 175.7 kB / 480.2 MB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.3782, allocations: 14.45 kB / 480.2 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.3784, allocations: 20.42 kB / 480.2 MB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.3785, allocations: 34.52 kB / 480.2 MB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.3785, allocations: 18.84 kB / 480.3 MB, free: 37.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002905/0.3788, allocations: 308.7 kB / 480.6 MB, free: 37.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3788, allocations: 0 / 480.6 MB, free: 37.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006958/0.3795, allocations: 165.5 kB / 480.7 MB, free: 37.66 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001508/0.3797, allocations: 117.2 kB / 480.8 MB, free: 37.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.3811, allocations: 0.9755 MB / 481.8 MB, free: 37.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3811, allocations: 0 / 481.8 MB, free: 37.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005628/0.3817, allocations: 0.6477 MB / 482.5 MB, free: 36.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006234/0.3823, allocations: 115.4 kB / 482.6 MB, free: 36.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.3845, allocations: 2.046 MB / 484.6 MB, free: 35.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.3848, allocations: 0.9863 MB / 485.6 MB, free: 34.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003445/0.3852, allocations: 119.6 kB / 485.7 MB, free: 34.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3853, allocations: 35.97 kB / 485.8 MB, free: 34.47 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3853, allocations: 3.625 kB / 485.8 MB, free: 34.47 MB / 382.1 MB Notification: Performance of Templates: time 0.0113/0.3966, allocations: 7.674 MB / 493.4 MB, free: 33.95 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: