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.001737/0.001737, allocations: 111.2 kB / 17.28 MB, free: 6.199 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.002982/0.002982, allocations: 197.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.217/3.217, allocations: 222.9 MB / 241.9 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3822/0.3822, allocations: 38.02 MB / 330.1 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00307/0.00307, allocations: 61.42 kB / 398.9 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.2027, allocations: 58.05 MB / 457 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.01735/0.2201, allocations: 6.762 MB / 463.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.2355, allocations: 4.772 MB / 468.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/0.2373, allocations: 39.75 kB / 468.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01662/0.254, allocations: 4.957 MB / 473.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002796/0.2569, allocations: 406.3 kB / 473.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.2586, allocations: 247.7 kB / 474.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006001/0.2646, allocations: 1.778 MB / 475.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002531/0.2672, allocations: 0.743 MB / 476.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001909/0.2692, allocations: 482.4 kB / 477.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/0.2709, allocations: 0.5333 MB / 477.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004953/0.2714, allocations: 76 kB / 477.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009271/0.2724, allocations: 131.9 kB / 477.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.2734, allocations: 339.1 kB / 478.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001631/0.275, allocations: 394.2 kB / 478.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002233/0.2773, allocations: 0.8302 MB / 479.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.195e-05/0.2773, allocations: 0 / 479.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.2774, allocations: 7.938 kB / 479.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.305e-05/0.2775, allocations: 0 / 479.4 MB, free: 1.82 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.004607/0.2821, allocations: 1.025 MB / 480.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.212e-05/0.2822, allocations: 11.89 kB / 480.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009891/0.2832, allocations: 100.1 kB / 480.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002565/0.2858, allocations: 0.5999 MB / 481.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.286, allocations: 82.91 kB / 481.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.2862, allocations: 63.91 kB / 481.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002735/0.289, allocations: 0.8176 MB / 482.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.183e-05/0.2891, allocations: 4 kB / 482.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.2893, allocations: 27.98 kB / 482.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002693/0.2896, allocations: 49.28 kB / 482.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/0.2916, allocations: 0.5905 MB / 482.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009152/0.3008, allocations: 2.935 MB / 485.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.3023, allocations: 430.2 kB / 486.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006172/0.303, allocations: 230.7 kB / 486.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.573e-05/0.3031, allocations: 4 kB / 486.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009902/0.3041, allocations: 342.4 kB / 486.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 5.31e-06/0.3042, allocations: 4 kB / 486.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.006505/0.3107, allocations: 2.04 MB / 488.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.3109, allocations: 140.5 kB / 488.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.3119, allocations: 449.8 kB / 489.3 MB, free: 7.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.153e-05/0.312, allocations: 29.7 kB / 489.4 MB, free: 7.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005257/0.3126, allocations: 335.8 kB / 489.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.313, allocations: 161.7 kB / 489.9 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004917/0.3135, allocations: 118.2 kB / 490 MB, free: 6.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003823/0.3139, allocations: 366.8 kB / 490.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000841/0.3148, allocations: 229.2 kB / 490.6 MB, free: 6.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009754/0.3158, allocations: 397.7 kB / 490.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005477/0.3213, allocations: 1.32 MB / 492.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.652e-05/0.3214, allocations: 0 / 492.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.004007/0.3254, allocations: 0.9708 MB / 493.2 MB, free: 3.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.3256, allocations: 33.7 kB / 493.3 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/0.3256, allocations: 4 kB / 493.3 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.3274, allocations: 315.9 kB / 493.6 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/0.3291, allocations: 175.7 kB / 493.8 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/0.3424, allocations: 5.303 MB / 499.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009517/0.3434, allocations: 23.98 kB / 499.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/0.3436, allocations: 23.94 kB / 499.1 MB, free: 13.17 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.001108/0.3448, allocations: 307.4 kB / 499.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.345, allocations: 55.28 kB / 499.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.3474, allocations: 0.8054 MB / 0.4885 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.3475, allocations: 11.94 kB / 0.4886 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.3475, allocations: 64 / 0.4886 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3475, allocations: 4 kB / 0.4886 GB, free: 11.92 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.004982/0.3525, allocations: 1.662 MB / 0.4902 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.3526, allocations: 4 kB / 0.4902 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/0.3548, allocations: 191.9 kB / 0.4904 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004627/0.3553, allocations: 82.47 kB / 0.4904 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.981e-05/0.3554, allocations: 15.92 kB / 0.4905 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005987/0.3614, allocations: 4.257 MB / 0.4946 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/0.3615, allocations: 4.031 kB / 0.4946 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003035/0.3646, allocations: 1.135 MB / 0.4957 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00062/0.3652, allocations: 168.4 kB / 0.4959 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.3655, allocations: 19.91 kB / 0.4959 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.3661, allocations: 15.98 kB / 0.4959 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.3662, allocations: 31.95 kB / 0.496 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-05/0.3663, allocations: 16 kB / 0.496 GB, free: 3.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007229/0.3671, allocations: 319.1 kB / 0.4963 GB, free: 3.359 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3671, allocations: 0 / 0.4963 GB, free: 3.359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001458/0.3685, allocations: 160 kB / 0.4964 GB, free: 3.203 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.0002937/0.3689, allocations: 115.2 kB / 0.4965 GB, free: 3.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003651/0.3725, allocations: 1.046 MB / 0.4976 GB, free: 1.996 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.3726, allocations: 0 / 0.4976 GB, free: 1.996 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.374, allocations: 0.6447 MB / 0.4982 GB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.3759, allocations: 139.9 kB / 0.4983 GB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006005/0.3819, allocations: 1.985 MB / 0.5003 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00124/0.3832, allocations: 0.9839 MB / 0.5012 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003142/0.3835, allocations: 39.44 kB / 0.5013 GB, free: 14.09 MB / 398.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3836, allocations: 3.938 kB / 0.5013 GB, free: 14.09 MB / 398.1 MB Notification: Performance of Templates: time 0.4078/0.7914, allocations: 14.64 MB / 0.5156 GB, free: 70.6 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)