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.001635/0.001635, allocations: 110.5 kB / 17.74 MB, free: 5.332 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.001806/0.001806, allocations: 187 kB / 18.68 MB, free: 4.402 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.288/1.288, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1714/0.1714, allocations: 38.04 MB / 330.6 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.91 kB / 458.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2708, allocations: 58.06 MB / 0.5048 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007015/0.2778, allocations: 7.434 MB / 0.512 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006168/0.284, allocations: 4.781 MB / 0.5167 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005852/0.2846, allocations: 35.19 kB / 0.5167 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00942/0.2941, allocations: 4.879 MB / 0.5215 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.2954, allocations: 0.515 MB / 0.522 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.2967, allocations: 0.4935 MB / 0.5225 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00295/0.2996, allocations: 2.38 MB / 0.5248 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.3012, allocations: 1.273 MB / 0.5261 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009116/0.3021, allocations: 0.6795 MB / 0.5267 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009842/0.3031, allocations: 0.7808 MB / 0.5275 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.3033, allocations: 130.5 kB / 0.5276 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002967/0.3036, allocations: 142.4 kB / 0.5278 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004571/0.3041, allocations: 453.6 kB / 0.5282 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005961/0.3047, allocations: 0.6194 MB / 0.5288 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.3062, allocations: 1.621 MB / 0.5304 GB, free: 9.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3063, allocations: 0 / 0.5304 GB, free: 9.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3063, allocations: 0 / 0.5304 GB, free: 9.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.3063, allocations: 3.938 kB / 0.5304 GB, free: 9.195 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.002788/0.3091, allocations: 1.474 MB / 0.5318 GB, free: 8.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.3091, allocations: 13.14 kB / 0.5318 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.3095, allocations: 137.8 kB / 0.532 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.3113, allocations: 0.921 MB / 0.5329 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.3113, allocations: 65.81 kB / 0.5329 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3115, allocations: 94.47 kB / 0.533 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/0.3133, allocations: 1.219 MB / 0.5342 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.3134, allocations: 6.594 kB / 0.5342 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.146e-05/0.3135, allocations: 36.41 kB / 0.5342 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002076/0.3137, allocations: 73.7 kB / 0.5343 GB, free: 6.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.3154, allocations: 1.013 MB / 0.5353 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005956/0.3214, allocations: 4.397 MB / 0.5396 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.3227, allocations: 0.8831 MB / 0.5405 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007038/0.3234, allocations: 445.7 kB / 0.5409 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.393e-05/0.3235, allocations: 12.02 kB / 0.5409 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.3236, allocations: 47.34 kB / 0.5409 GB, free: 1.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 3.005e-06/0.3236, allocations: 0 / 0.5409 GB, free: 1.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.00633/0.3299, allocations: 3.322 MB / 0.5442 GB, free: 15.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/0.33, allocations: 140.1 kB / 0.5443 GB, free: 15.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007916/0.3308, allocations: 0.683 MB / 0.545 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.3309, allocations: 44.45 kB / 0.545 GB, free: 14.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/0.3312, allocations: 488.4 kB / 0.5455 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.3314, allocations: 265.7 kB / 0.5457 GB, free: 14.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.3317, allocations: 166.5 kB / 0.5459 GB, free: 13.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3318, allocations: 342 kB / 0.5462 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006114/0.3324, allocations: 380.6 kB / 0.5466 GB, free: 13.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007461/0.3331, allocations: 0.5904 MB / 0.5472 GB, free: 12.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007584/0.3407, allocations: 2.364 MB / 0.5495 GB, free: 9.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.3408, allocations: 4 kB / 0.5495 GB, free: 9.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005513/0.3463, allocations: 2.009 MB / 0.5514 GB, free: 7.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3463, allocations: 8 kB / 0.5515 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3463, allocations: 8 kB / 0.5515 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004604/0.3509, allocations: 0.9965 MB / 0.5524 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005463/0.3515, allocations: 127.8 kB / 0.5526 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/0.3674, allocations: 10.02 MB / 0.5623 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007569/0.3682, allocations: 39.97 kB / 0.5624 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.3683, allocations: 43.98 kB / 0.5624 GB, free: 12.41 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.001023/0.3694, allocations: 0.6151 MB / 0.563 GB, free: 11.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007308/0.3701, allocations: 0.5744 MB / 0.5636 GB, free: 11.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007491/0.3776, allocations: 2.325 MB / 0.5658 GB, free: 8.695 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.302e-06/0.3776, allocations: 4 kB / 0.5659 GB, free: 8.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.00542/0.3831, allocations: 1.935 MB / 0.5677 GB, free: 6.723 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3831, allocations: 8 kB / 0.5677 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3831, allocations: 8 kB / 0.5678 GB, free: 6.707 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004545/0.3877, allocations: 0.9894 MB / 0.5687 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005341/0.3882, allocations: 131.7 kB / 0.5688 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/0.4028, allocations: 9.775 MB / 0.5784 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000737/0.4036, allocations: 32.05 kB / 0.5784 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.475e-05/0.4037, allocations: 43.98 kB / 0.5785 GB, free: 11.45 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.0002771/0.404, allocations: 232.1 kB / 0.5787 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.4042, allocations: 99.36 kB / 0.5788 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/0.4064, allocations: 1.249 MB / 0.58 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.4064, allocations: 3.984 kB / 0.58 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4064, allocations: 7.938 kB / 0.58 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003744/0.4068, allocations: 232.4 kB / 0.5802 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.4069, allocations: 19.98 kB / 0.5803 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005124/0.4075, allocations: 31.98 kB / 0.5803 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4076, allocations: 56.56 kB / 0.5803 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002704/0.4103, allocations: 1.358 MB / 0.5817 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002237/0.4126, allocations: 1.729 MB / 0.5834 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006204/0.4132, allocations: 433 kB / 0.5838 GB, free: 5.898 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006045/0.4138, allocations: 479 kB / 0.5842 GB, free: 5.438 MB / 446.1 MB Notification: Performance of Backend: time 4.31e-07/0.4138, allocations: 0 / 0.5842 GB, free: 5.438 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005068/0.4189, allocations: 2.375 MB / 0.5865 GB, free: 3.008 MB / 446.1 MB Notification: Performance of SimCode: time 0.003881/0.4228, allocations: 2.825 MB / 0.5893 GB, free: 140 kB / 446.1 MB Notification: Performance of Templates: time 0.03954/0.4624, allocations: 26.78 MB / 0.6155 GB, free: 5.508 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)