Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001583/0.001589, allocations: 109.2 kB / 17.75 MB, free: 5.309 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.001866/0.001866, allocations: 184.3 kB / 18.68 MB, free: 4.391 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.276/1.276, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.03 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2807, allocations: 58.05 MB / 0.5048 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007532/0.2883, allocations: 7.442 MB / 0.512 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006782/0.2951, allocations: 4.785 MB / 0.5167 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006751/0.2958, allocations: 36.5 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009701/0.3055, allocations: 4.877 MB / 0.5215 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.3071, allocations: 0.4979 MB / 0.522 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.3085, allocations: 0.4951 MB / 0.5225 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002734/0.3112, allocations: 2.374 MB / 0.5248 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.3128, allocations: 1.278 MB / 0.526 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008492/0.3137, allocations: 0.6864 MB / 0.5267 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009403/0.3147, allocations: 0.7809 MB / 0.5275 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001892/0.3149, allocations: 126.4 kB / 0.5276 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.3152, allocations: 138.3 kB / 0.5277 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004602/0.3156, allocations: 454.5 kB / 0.5282 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006096/0.3162, allocations: 0.6203 MB / 0.5288 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.3177, allocations: 1.618 MB / 0.5303 GB, free: 9.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3177, allocations: 0 / 0.5303 GB, free: 9.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3178, allocations: 3.938 kB / 0.5304 GB, free: 9.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.3178, allocations: 0 / 0.5304 GB, free: 9.211 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002868/0.3206, allocations: 1.442 MB / 0.5318 GB, free: 8.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.3207, allocations: 12.92 kB / 0.5318 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004072/0.3211, allocations: 132.5 kB / 0.5319 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.323, allocations: 0.91 MB / 0.5328 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.323, allocations: 68.69 kB / 0.5329 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.3232, allocations: 95.02 kB / 0.5329 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.325, allocations: 1.223 MB / 0.5341 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.3251, allocations: 1.531 kB / 0.5341 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.273e-05/0.3252, allocations: 33.41 kB / 0.5342 GB, free: 6.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002182/0.3254, allocations: 77.33 kB / 0.5342 GB, free: 6.461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.327, allocations: 1.005 MB / 0.5352 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006111/0.3331, allocations: 4.396 MB / 0.5395 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.3345, allocations: 0.8825 MB / 0.5404 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000699/0.3353, allocations: 448 kB / 0.5408 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.549e-05/0.3353, allocations: 16.77 kB / 0.5408 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.3354, allocations: 38.97 kB / 0.5409 GB, free: 1.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.584e-06/0.3354, allocations: 4 kB / 0.5409 GB, free: 1.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.006341/0.3417, allocations: 3.283 MB / 0.5441 GB, free: 15.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.3418, allocations: 137.1 kB / 0.5442 GB, free: 15.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/0.3426, allocations: 0.6936 MB / 0.5449 GB, free: 14.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.772e-05/0.3426, allocations: 40.52 kB / 0.5449 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.343, allocations: 473 kB / 0.5454 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.3432, allocations: 265.5 kB / 0.5456 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.3434, allocations: 162.5 kB / 0.5458 GB, free: 14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3436, allocations: 338 kB / 0.5461 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006253/0.3442, allocations: 384.6 kB / 0.5465 GB, free: 13.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007436/0.345, allocations: 0.5827 MB / 0.547 GB, free: 12.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007759/0.3527, allocations: 2.367 MB / 0.5493 GB, free: 10.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3527, allocations: 0 / 0.5493 GB, free: 10.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005672/0.3584, allocations: 2.009 MB / 0.5513 GB, free: 8.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3585, allocations: 8 kB / 0.5513 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3585, allocations: 4 kB / 0.5513 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004626/0.3631, allocations: 0.9965 MB / 0.5523 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005266/0.3636, allocations: 139.7 kB / 0.5524 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01564/0.3793, allocations: 9.999 MB / 0.5622 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007909/0.3801, allocations: 44.03 kB / 0.5622 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.836e-05/0.3802, allocations: 35.98 kB / 0.5623 GB, free: 12.57 MB / 430.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_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001029/0.3812, allocations: 0.619 MB / 0.5629 GB, free: 11.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007129/0.382, allocations: 0.5782 MB / 0.5634 GB, free: 11.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00747/0.3894, allocations: 2.321 MB / 0.5657 GB, free: 8.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.822e-06/0.3895, allocations: 4 kB / 0.5657 GB, free: 8.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.005447/0.3949, allocations: 1.931 MB / 0.5676 GB, free: 6.883 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.395, allocations: 4 kB / 0.5676 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.395, allocations: 8.125 kB / 0.5676 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004565/0.3995, allocations: 0.9932 MB / 0.5686 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000543/0.4001, allocations: 131.8 kB / 0.5687 GB, free: 5.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/0.4151, allocations: 9.764 MB / 0.5782 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007398/0.4158, allocations: 40.05 kB / 0.5783 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.938e-05/0.4159, allocations: 39.98 kB / 0.5783 GB, free: 11.61 MB / 446.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0002645/0.4162, allocations: 234.6 kB / 0.5785 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.4164, allocations: 98.8 kB / 0.5786 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/0.4185, allocations: 1.242 MB / 0.5798 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.4185, allocations: 3.984 kB / 0.5798 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4185, allocations: 0 / 0.5798 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003813/0.4189, allocations: 235.8 kB / 0.5801 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.419, allocations: 23.98 kB / 0.5801 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.4195, allocations: 27.98 kB / 0.5801 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.4196, allocations: 56.56 kB / 0.5802 GB, free: 9.621 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002616/0.4222, allocations: 1.354 MB / 0.5815 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002205/0.4245, allocations: 1.724 MB / 0.5832 GB, free: 6.504 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005991/0.4251, allocations: 429 kB / 0.5836 GB, free: 6.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005683/0.4256, allocations: 483 kB / 0.584 GB, free: 5.621 MB / 446.1 MB Notification: Performance of Backend: time 4.91e-07/0.4257, allocations: 0 / 0.584 GB, free: 5.621 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00484/0.4305, allocations: 2.351 MB / 0.5863 GB, free: 3.215 MB / 446.1 MB Notification: Performance of SimCode: time 0.003595/0.4341, allocations: 2.794 MB / 0.5891 GB, free: 384 kB / 446.1 MB Notification: Performance of Templates: time 0.03756/0.4717, allocations: 26.78 MB / 0.6152 GB, free: 5.734 MB / 478.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)