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.001196/0.001196, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001306/0.001306, allocations: 190 kB / 17.54 MB, free: 6.066 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.4/1.4, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1764/0.1764, allocations: 38.03 MB / 329.4 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 70.84 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1549, allocations: 58.07 MB / 456.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.01431/0.1693, allocations: 8.45 MB / 464.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.1813, allocations: 5.115 MB / 469.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001565/0.1829, allocations: 55.69 kB / 470 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.1953, allocations: 4.922 MB / 474.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.1975, allocations: 465.8 kB / 475.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.1992, allocations: 455.5 kB / 475.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004042/0.2032, allocations: 2.42 MB / 478.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.2055, allocations: 1.285 MB / 479.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.2069, allocations: 0.6772 MB / 480.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.2083, allocations: 0.8174 MB / 481 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002528/0.2085, allocations: 128 kB / 481.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000395/0.2089, allocations: 143.9 kB / 481.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005874/0.2095, allocations: 458.8 kB / 481.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008146/0.2104, allocations: 0.6143 MB / 482.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002058/0.2124, allocations: 1.593 MB / 483.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2125, allocations: 0 / 483.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2125, allocations: 0 / 483.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.2125, allocations: 0 / 483.9 MB, free: 12.75 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.00405/0.2166, allocations: 1.448 MB / 485.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.2166, allocations: 15.83 kB / 485.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005919/0.2172, allocations: 131.4 kB / 485.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.2197, allocations: 0.8671 MB / 486.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.503e-05/0.2198, allocations: 65.98 kB / 486.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.22, allocations: 91.91 kB / 486.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002945/0.223, allocations: 1.23 MB / 487.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/0.223, allocations: 0 / 487.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.2232, allocations: 39.98 kB / 487.8 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000314/0.2235, allocations: 73.95 kB / 487.9 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002411/0.2259, allocations: 1.003 MB / 488.9 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008819/0.2348, allocations: 4.437 MB / 493.3 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002006/0.2368, allocations: 0.8782 MB / 494.2 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.2379, allocations: 445.9 kB / 494.6 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.532e-05/0.238, allocations: 13.34 kB / 494.6 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.238, allocations: 47.06 kB / 494.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 4.649e-06/0.238, allocations: 0 / 494.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.009763/0.2478, allocations: 3.295 MB / 498 MB, free: 14.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.248, allocations: 141 kB / 498.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.2492, allocations: 0.6803 MB / 498.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.569e-05/0.2493, allocations: 41.7 kB / 498.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004852/0.2498, allocations: 479.2 kB / 499.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003124/0.2501, allocations: 252.3 kB / 499.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003798/0.2505, allocations: 170.5 kB / 499.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.2507, allocations: 341.9 kB / 0.4883 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009322/0.2517, allocations: 376.7 kB / 0.4887 GB, free: 11.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.2529, allocations: 0.5939 MB / 0.4893 GB, free: 10.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/0.2641, allocations: 2.368 MB / 0.4916 GB, free: 8.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.2642, allocations: 0 / 0.4916 GB, free: 8.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.008377/0.2726, allocations: 2.009 MB / 0.4935 GB, free: 6.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.2726, allocations: 8 kB / 0.4935 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.2727, allocations: 4 kB / 0.4935 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007008/0.2797, allocations: 1.008 MB / 0.4945 GB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008563/0.2806, allocations: 131.8 kB / 0.4947 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2842/0.5648, allocations: 10.01 MB / 0.5044 GB, free: 53.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008008/0.5656, allocations: 38.75 kB / 0.5045 GB, free: 53.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-05/0.5657, allocations: 38.06 kB / 0.5045 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.001078/0.5668, allocations: 0.6179 MB / 0.5051 GB, free: 53.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007121/0.5675, allocations: 0.5741 MB / 0.5057 GB, free: 53.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007935/0.5754, allocations: 2.34 MB / 0.508 GB, free: 52.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.094e-05/0.5755, allocations: 4.844 kB / 0.508 GB, free: 52.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.005887/0.5814, allocations: 1.93 MB / 0.5098 GB, free: 51.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.5814, allocations: 11.27 kB / 0.5099 GB, free: 51.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.5814, allocations: 10.53 kB / 0.5099 GB, free: 51.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00531/0.5868, allocations: 0.9831 MB / 0.5108 GB, free: 51.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/0.5874, allocations: 136.2 kB / 0.511 GB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01535/0.6028, allocations: 9.773 MB / 0.5205 GB, free: 45.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008735/0.6037, allocations: 36.8 kB / 0.5205 GB, free: 45.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-05/0.6038, allocations: 41.62 kB / 0.5206 GB, free: 45.64 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.0003445/0.6042, allocations: 243.3 kB / 0.5208 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.6043, allocations: 86.28 kB / 0.5209 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.6062, allocations: 1.24 MB / 0.5221 GB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.6062, allocations: 11.94 kB / 0.5221 GB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.6062, allocations: 7.875 kB / 0.5221 GB, free: 44.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.6062, allocations: 3.984 kB / 0.5221 GB, free: 44.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.6096, allocations: 2.403 MB / 0.5245 GB, free: 43.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.6096, allocations: 1.375 kB / 0.5245 GB, free: 43.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008592/0.6105, allocations: 158.3 kB / 0.5246 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004492/0.6109, allocations: 153.2 kB / 0.5248 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-05/0.611, allocations: 27.55 kB / 0.5248 GB, free: 42.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002797/0.6138, allocations: 5.816 MB / 0.5305 GB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6138, allocations: 0 / 0.5305 GB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.6161, allocations: 1.855 MB / 0.5323 GB, free: 35.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/0.6164, allocations: 232.5 kB / 0.5325 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.6165, allocations: 19.8 kB / 0.5325 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.617, allocations: 31.3 kB / 0.5326 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.6172, allocations: 67.53 kB / 0.5326 GB, free: 35.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.6172, allocations: 27.05 kB / 0.5326 GB, free: 35.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00049/0.6177, allocations: 479.2 kB / 0.5331 GB, free: 35.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6178, allocations: 0 / 0.5331 GB, free: 35.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001653/0.6194, allocations: 456.3 kB / 0.5335 GB, free: 35.22 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.0001682/0.6196, allocations: 130 kB / 0.5337 GB, free: 35.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004712/0.6243, allocations: 2.787 MB / 0.5364 GB, free: 32.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.6243, allocations: 0 / 0.5364 GB, free: 32.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009726/0.6253, allocations: 0.9121 MB / 0.5373 GB, free: 31.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.6265, allocations: 247.6 kB / 0.5375 GB, free: 31.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.6298, allocations: 2.829 MB / 0.5403 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.6304, allocations: 1.188 MB / 0.5414 GB, free: 27.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007936/0.6312, allocations: 206 kB / 0.5416 GB, free: 27.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.6315, allocations: 63.42 kB / 0.5417 GB, free: 27.09 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6315, allocations: 0 / 0.5417 GB, free: 27.09 MB / 382.1 MB Notification: Performance of Templates: time 0.02954/0.661, allocations: 24.64 MB / 0.5657 GB, free: 2.609 MB / 382.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)