Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_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.001927/0.001926, allocations: 112 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.002807/0.002807, allocations: 193.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 2.338/2.338, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.193/0.193, allocations: 38.03 MB / 330.1 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002545/0.002545, allocations: 60.61 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1468, allocations: 58.06 MB / 457 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.01642/0.1632, allocations: 8.459 MB / 465.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01292/0.1762, allocations: 5.095 MB / 470.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001878/0.1782, allocations: 63.62 kB / 470.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01593/0.1941, allocations: 4.924 MB / 475.5 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002684/0.1969, allocations: 461.9 kB / 476 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00253/0.1994, allocations: 470.4 kB / 476.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006051/0.2055, allocations: 2.417 MB / 478.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003384/0.2089, allocations: 1.285 MB / 480.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00194/0.2109, allocations: 0.6811 MB / 480.8 MB, free: 488 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002112/0.2131, allocations: 0.8135 MB / 481.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005546/0.2136, allocations: 128 kB / 481.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008013/0.2145, allocations: 140 kB / 481.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.2156, allocations: 462.8 kB / 482.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.2174, allocations: 0.6143 MB / 483 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002697/0.2201, allocations: 1.294 MB / 484.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.966e-06/0.2202, allocations: 0 / 484.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2202, allocations: 0 / 484.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.32e-05/0.2203, allocations: 0 / 484.3 MB, free: 13.03 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006426/0.2267, allocations: 1.448 MB / 485.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.2268, allocations: 11.89 kB / 485.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009899/0.2278, allocations: 131.4 kB / 485.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003406/0.2312, allocations: 0.8748 MB / 486.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-05/0.2313, allocations: 65.94 kB / 486.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/0.2317, allocations: 99.89 kB / 486.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003842/0.2356, allocations: 1.222 MB / 488.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.519e-05/0.2357, allocations: 3.938 kB / 488.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/0.2359, allocations: 44 kB / 488.2 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004042/0.2363, allocations: 69.95 kB / 488.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003202/0.2395, allocations: 1.003 MB / 489.2 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/0.2512, allocations: 4.425 MB / 493.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/0.2537, allocations: 0.8829 MB / 494.5 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.2549, allocations: 440 kB / 495 MB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.489e-05/0.2551, allocations: 16.55 kB / 495 MB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.23e-05/0.2552, allocations: 47.06 kB / 495 MB, free: 1.902 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 5e-06/0.2552, allocations: 0 / 495 MB, free: 1.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.01214/0.2673, allocations: 3.291 MB / 498.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.2675, allocations: 141.1 kB / 498.5 MB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.2694, allocations: 0.6803 MB / 499.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.2696, allocations: 41.7 kB / 499.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006468/0.2702, allocations: 475.3 kB / 499.6 MB, free: 13.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004646/0.2707, allocations: 256.3 kB / 499.9 MB, free: 12.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.2712, allocations: 166.5 kB / 0.4883 GB, free: 12.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.2715, allocations: 341.9 kB / 0.4887 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.2726, allocations: 380.7 kB / 0.489 GB, free: 11.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.274, allocations: 0.586 MB / 0.4896 GB, free: 11.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01365/0.2877, allocations: 2.379 MB / 0.4919 GB, free: 8.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.2877, allocations: 0 / 0.4919 GB, free: 8.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.01036/0.2981, allocations: 2.001 MB / 0.4939 GB, free: 6.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.2982, allocations: 8.312 kB / 0.4939 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.2982, allocations: 8 kB / 0.4939 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008351/0.3066, allocations: 1.004 MB / 0.4949 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.3077, allocations: 135.8 kB / 0.495 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3979/0.7056, allocations: 10.02 MB / 0.5048 GB, free: 53.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.7069, allocations: 36.86 kB / 0.5048 GB, free: 53.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.7071, allocations: 39.73 kB / 0.5049 GB, free: 53.7 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_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001608/0.7087, allocations: 0.6176 MB / 0.5055 GB, free: 53.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001165/0.7099, allocations: 0.5712 MB / 0.506 GB, free: 53.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01272/0.7226, allocations: 2.347 MB / 0.5083 GB, free: 52.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.968e-05/0.7227, allocations: 5.344 kB / 0.5083 GB, free: 52.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.01095/0.7337, allocations: 1.925 MB / 0.5102 GB, free: 51.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.7337, allocations: 7.5 kB / 0.5102 GB, free: 51.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.7338, allocations: 10.53 kB / 0.5102 GB, free: 51.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009285/0.7431, allocations: 0.9928 MB / 0.5112 GB, free: 51.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.7445, allocations: 131.9 kB / 0.5113 GB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02962/0.7741, allocations: 9.777 MB / 0.5209 GB, free: 45.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005457/0.7796, allocations: 36.59 kB / 0.5209 GB, free: 45.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/0.7799, allocations: 39.55 kB / 0.5209 GB, free: 45.62 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_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.0005517/0.7805, allocations: 232.4 kB / 0.5211 GB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003807/0.7809, allocations: 91.47 kB / 0.5212 GB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/0.7849, allocations: 1.248 MB / 0.5225 GB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.7849, allocations: 11.88 kB / 0.5225 GB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.7849, allocations: 0 / 0.5225 GB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.785, allocations: 3.281 kB / 0.5225 GB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.7969, allocations: 2.404 MB / 0.5248 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.797, allocations: 5.203 kB / 0.5248 GB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/0.7988, allocations: 155.3 kB / 0.525 GB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005124/0.8039, allocations: 149.4 kB / 0.5251 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002531/0.8042, allocations: 27.67 kB / 0.5251 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005331/0.8096, allocations: 5.811 MB / 0.5308 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.8097, allocations: 0 / 0.5308 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004693/0.8144, allocations: 1.859 MB / 0.5326 GB, free: 35.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006406/0.815, allocations: 232.6 kB / 0.5328 GB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003651/0.8154, allocations: 19.66 kB / 0.5329 GB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.8166, allocations: 31.62 kB / 0.5329 GB, free: 35.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/0.8168, allocations: 63.67 kB / 0.533 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.817, allocations: 26.98 kB / 0.533 GB, free: 35.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001052/0.8181, allocations: 480.6 kB / 0.5334 GB, free: 35.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8181, allocations: 0 / 0.5334 GB, free: 35.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003179/0.8213, allocations: 456 kB / 0.5339 GB, free: 35.28 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (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_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 74 * 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 {(1,1,100.0%), (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.0002962/0.8216, allocations: 128.3 kB / 0.534 GB, free: 35.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009366/0.831, allocations: 2.794 MB / 0.5367 GB, free: 32.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/0.831, allocations: 5.125 kB / 0.5367 GB, free: 32.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/0.8328, allocations: 0.92 MB / 0.5376 GB, free: 31.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.835, allocations: 247.6 kB / 0.5379 GB, free: 31.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00723/0.8423, allocations: 2.902 MB / 0.5407 GB, free: 28.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.8439, allocations: 1.174 MB / 0.5418 GB, free: 27.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006546/0.8446, allocations: 75.36 kB / 0.5419 GB, free: 27.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.804e-06/0.8447, allocations: 0 / 0.5419 GB, free: 27.45 MB / 382.1 MB Notification: Performance of Templates: time 0.0504/0.8951, allocations: 27.64 MB / 0.5689 GB, free: 15.84 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)