Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002193/0.002193, allocations: 110.8 kB / 17.29 MB, free: 6.211 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.002653/0.002653, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.906/2.906, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4039/0.4039, allocations: 38.03 MB / 330.1 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002768/0.002768, allocations: 66.48 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2256, allocations: 58.06 MB / 457 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01817/0.2438, allocations: 8.357 MB / 465.4 MB, free: 20 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.2592, allocations: 5.37 MB / 470.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002322/0.2617, allocations: 51.69 kB / 470.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0171/0.2788, allocations: 5.721 MB / 476.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003418/0.2823, allocations: 0.4978 MB / 477 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002823/0.2851, allocations: 0.5218 MB / 477.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007876/0.293, allocations: 2.647 MB / 480.2 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003954/0.2971, allocations: 1.304 MB / 481.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002806/0.2999, allocations: 0.72 MB / 482.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002546/0.3025, allocations: 0.8905 MB / 483.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008892/0.3034, allocations: 144 kB / 483.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001559/0.305, allocations: 220 kB / 483.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001534/0.3066, allocations: 0.5298 MB / 484 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002278/0.3089, allocations: 0.692 MB / 484.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003781/0.3127, allocations: 1.516 MB / 486.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3128, allocations: 0 / 486.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3128, allocations: 0 / 486.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.3129, allocations: 0 / 486.2 MB, free: 11.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.008819/0.3217, allocations: 1.693 MB / 487.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.549e-05/0.3218, allocations: 15.89 kB / 487.9 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.3232, allocations: 151.2 kB / 488 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00455/0.3278, allocations: 1.058 MB / 489.1 MB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.328, allocations: 65.94 kB / 489.2 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005394/0.3285, allocations: 99.88 kB / 489.2 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004551/0.3331, allocations: 1.328 MB / 490.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.841e-05/0.3332, allocations: 4 kB / 490.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.3335, allocations: 36 kB / 490.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005412/0.334, allocations: 97.92 kB / 490.7 MB, free: 6.445 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003658/0.3377, allocations: 1.136 MB / 491.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01423/0.352, allocations: 4.931 MB / 496.8 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/0.3546, allocations: 0.9491 MB / 497.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.3561, allocations: 0.516 MB / 498.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.3563, allocations: 20.62 kB / 498.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001775/0.3581, allocations: 0.6255 MB / 498.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 6.772e-06/0.3581, allocations: 0 / 498.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.01617/0.3743, allocations: 4.159 MB / 0.4913 GB, free: 9.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002389/0.3746, allocations: 166.9 kB / 0.4914 GB, free: 9.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/0.3769, allocations: 0.8449 MB / 0.4922 GB, free: 8.629 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002693/0.3772, allocations: 41.7 kB / 0.4923 GB, free: 8.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007394/0.378, allocations: 0.519 MB / 0.4928 GB, free: 8.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006211/0.3786, allocations: 287.8 kB / 0.4931 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006906/0.3793, allocations: 186.5 kB / 0.4932 GB, free: 7.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002211/0.3796, allocations: 341.9 kB / 0.4936 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.381, allocations: 496.5 kB / 0.494 GB, free: 6.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.3827, allocations: 0.7052 MB / 0.4947 GB, free: 5.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/0.386, allocations: 1.23 MB / 0.4959 GB, free: 4.629 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.662e-05/0.386, allocations: 4 kB / 0.4959 GB, free: 4.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.01471/0.4007, allocations: 2.896 MB / 0.4988 GB, free: 1.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.873e-05/0.4009, allocations: 12 kB / 0.4988 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.375e-05/0.4009, allocations: 9.141 kB / 0.4988 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4238/0.8247, allocations: 1.885 MB / 0.5006 GB, free: 55.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.8261, allocations: 140.2 kB / 0.5008 GB, free: 55.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04412/0.8703, allocations: 12.57 MB / 0.513 GB, free: 49.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/0.8724, allocations: 49.97 kB / 0.5131 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005608/0.8731, allocations: 51.55 kB / 0.5131 GB, free: 49.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002933/0.876, allocations: 0.7545 MB / 0.5139 GB, free: 49.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002099/0.8782, allocations: 0.7013 MB / 0.5145 GB, free: 48.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003735/0.8819, allocations: 1.207 MB / 0.5157 GB, free: 48.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.807e-05/0.8821, allocations: 2.734 kB / 0.5157 GB, free: 48.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.01644/0.8985, allocations: 2.817 MB / 0.5185 GB, free: 47.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.514e-05/0.8987, allocations: 7.406 kB / 0.5185 GB, free: 47.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.581e-05/0.8987, allocations: 7.562 kB / 0.5185 GB, free: 47.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01409/0.9128, allocations: 1.868 MB / 0.5203 GB, free: 47.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.914, allocations: 144.5 kB / 0.5205 GB, free: 47.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03103/0.945, allocations: 12.34 MB / 0.5325 GB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.9469, allocations: 51.91 kB / 0.5326 GB, free: 38.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003344/0.9473, allocations: 47.98 kB / 0.5326 GB, free: 38.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,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 (71): * Single equations (assignments): 69 * 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 {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0007049/0.948, allocations: 242.8 kB / 0.5328 GB, free: 38.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000432/0.9484, allocations: 102.8 kB / 0.5329 GB, free: 38.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004824/0.9533, allocations: 1.646 MB / 0.5345 GB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.9534, allocations: 8 kB / 0.5345 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/0.9534, allocations: 7.938 kB / 0.5346 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.132e-05/0.9534, allocations: 3.984 kB / 0.5346 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007479/0.9609, allocations: 2.883 MB / 0.5374 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.961, allocations: 4 kB / 0.5374 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/0.9625, allocations: 171.8 kB / 0.5375 GB, free: 33.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/0.9644, allocations: 380.9 kB / 0.5379 GB, free: 32.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001947/0.9647, allocations: 31.92 kB / 0.5379 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007809/0.9725, allocations: 6.796 MB / 0.5446 GB, free: 25.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.9726, allocations: 4.031 kB / 0.5446 GB, free: 25.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006296/0.9789, allocations: 2.283 MB / 0.5468 GB, free: 23.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009538/0.9799, allocations: 271.7 kB / 0.5471 GB, free: 22.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004264/0.9804, allocations: 20 kB / 0.5471 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.9817, allocations: 47.95 kB / 0.5471 GB, free: 22.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003651/0.9821, allocations: 72.83 kB / 0.5472 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.9822, allocations: 31.98 kB / 0.5472 GB, free: 22.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001427/0.9837, allocations: 0.5776 MB / 0.5478 GB, free: 22.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9837, allocations: 0 / 0.5478 GB, free: 22.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00461/0.9883, allocations: 0.5493 MB / 0.5483 GB, free: 21.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (1,3,100.0%), (2,1,100.0%), (2,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.001764/0.9901, allocations: 432.8 kB / 0.5487 GB, free: 21.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01269/1.003, allocations: 3.464 MB / 0.5521 GB, free: 17.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/1.003, allocations: 0 / 0.5521 GB, free: 17.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002917/1.006, allocations: 1.148 MB / 0.5532 GB, free: 16.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.009, allocations: 284.1 kB / 0.5535 GB, free: 16.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009131/1.018, allocations: 3.471 MB / 0.5569 GB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/1.02, allocations: 1.241 MB / 0.5581 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007026/1.02, allocations: 87.41 kB / 0.5582 GB, free: 11.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.733e-06/1.02, allocations: 0 / 0.5582 GB, free: 11.58 MB / 382.1 MB Notification: Performance of Templates: time 0.07191/1.092, allocations: 32.44 MB / 0.5899 GB, free: 11.18 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)