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.001199/0.001199, allocations: 104.5 kB / 16.92 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.001157/0.001157, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.449/1.449, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1946/0.1946, allocations: 38.03 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 71.03 kB / 398.8 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.122, allocations: 58.06 MB / 456.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.009578/0.1316, allocations: 7.425 MB / 464.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008282/0.1399, allocations: 4.787 MB / 469.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.1411, allocations: 35.81 kB / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009516/0.1506, allocations: 4.877 MB / 474 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.1524, allocations: 0.4935 MB / 474.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.1537, allocations: 0.4992 MB / 475 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003256/0.1569, allocations: 2.367 MB / 477.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001562/0.1585, allocations: 1.27 MB / 478.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009725/0.1595, allocations: 0.6734 MB / 479.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.1606, allocations: 0.7784 MB / 480.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001931/0.1608, allocations: 128 kB / 480.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003223/0.1611, allocations: 144 kB / 480.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004126/0.1615, allocations: 458.8 kB / 480.8 MB, free: 20 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006248/0.1622, allocations: 0.6183 MB / 481.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.1637, allocations: 1.589 MB / 483 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1637, allocations: 0 / 483 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1638, allocations: 0 / 483 MB, free: 13.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.725e-05/0.1638, allocations: 0 / 483 MB, free: 13.8 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.003072/0.1669, allocations: 1.456 MB / 484.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1669, allocations: 11.89 kB / 484.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.1674, allocations: 127.5 kB / 484.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.1691, allocations: 0.8748 MB / 485.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.235e-05/0.1692, allocations: 62 kB / 485.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/0.1694, allocations: 95.97 kB / 485.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.1713, allocations: 1.218 MB / 486.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.1713, allocations: 7.891 kB / 486.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.794e-05/0.1714, allocations: 44 kB / 486.9 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002562/0.1717, allocations: 69.95 kB / 486.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.1734, allocations: 1.011 MB / 488 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006848/0.1803, allocations: 4.425 MB / 492.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.1818, allocations: 0.8829 MB / 493.3 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000727/0.1825, allocations: 444 kB / 493.7 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.947e-05/0.1826, allocations: 16.55 kB / 493.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.1826, allocations: 43.12 kB / 493.8 MB, free: 2.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 3.417e-06/0.1827, allocations: 3.938 kB / 493.8 MB, free: 2.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006943/0.1896, allocations: 3.287 MB / 497 MB, free: 15.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.177e-05/0.1897, allocations: 137.1 kB / 497.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008657/0.1906, allocations: 0.6803 MB / 497.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.841e-05/0.1906, allocations: 41.7 kB / 497.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000353/0.191, allocations: 479.2 kB / 498.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.1913, allocations: 256.3 kB / 498.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/0.1915, allocations: 162.5 kB / 498.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1917, allocations: 341.9 kB / 499.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006471/0.1923, allocations: 380.7 kB / 499.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008219/0.1932, allocations: 0.586 MB / 0.4883 GB, free: 12.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007714/0.2009, allocations: 2.379 MB / 0.4907 GB, free: 9.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.201, allocations: 0 / 0.4907 GB, free: 9.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005855/0.2068, allocations: 2.008 MB / 0.4926 GB, free: 7.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.2069, allocations: 8.312 kB / 0.4926 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.2069, allocations: 8 kB / 0.4926 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004627/0.2116, allocations: 1.004 MB / 0.4936 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005758/0.2122, allocations: 135.7 kB / 0.4938 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2336/0.4458, allocations: 10.01 MB / 0.5035 GB, free: 53.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007809/0.4467, allocations: 42.06 kB / 0.5036 GB, free: 53.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.643e-05/0.4467, allocations: 35.62 kB / 0.5036 GB, free: 53.82 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.001009/0.4478, allocations: 0.6136 MB / 0.5042 GB, free: 53.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006939/0.4485, allocations: 0.5738 MB / 0.5048 GB, free: 53.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007731/0.4562, allocations: 2.345 MB / 0.5071 GB, free: 52.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.578e-06/0.4562, allocations: 1.406 kB / 0.5071 GB, free: 52.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.005504/0.4618, allocations: 1.937 MB / 0.509 GB, free: 51.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.4618, allocations: 14.72 kB / 0.509 GB, free: 51.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.4618, allocations: 8.469 kB / 0.509 GB, free: 51.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00489/0.4667, allocations: 0.9823 MB / 0.5099 GB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/0.4674, allocations: 134.8 kB / 0.5101 GB, free: 51.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01417/0.4816, allocations: 9.781 MB / 0.5196 GB, free: 45.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007293/0.4823, allocations: 39.39 kB / 0.5197 GB, free: 45.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.78e-05/0.4824, allocations: 35.16 kB / 0.5197 GB, free: 45.75 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.0002704/0.4827, allocations: 237.7 kB / 0.5199 GB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.4829, allocations: 93.58 kB / 0.52 GB, free: 45.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.4847, allocations: 1.241 MB / 0.5212 GB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.4848, allocations: 7.781 kB / 0.5212 GB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4848, allocations: 3.875 kB / 0.5212 GB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.4848, allocations: 9.469 kB / 0.5212 GB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.4881, allocations: 2.404 MB / 0.5236 GB, free: 43.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4881, allocations: 1.406 kB / 0.5236 GB, free: 43.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008409/0.4889, allocations: 154.2 kB / 0.5237 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004546/0.4894, allocations: 150.8 kB / 0.5239 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.4895, allocations: 22.86 kB / 0.5239 GB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.4924, allocations: 5.815 MB / 0.5296 GB, free: 37.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4925, allocations: 3.812 kB / 0.5296 GB, free: 37.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/0.4947, allocations: 1.856 MB / 0.5314 GB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.495, allocations: 239.9 kB / 0.5316 GB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.4952, allocations: 19.22 kB / 0.5316 GB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000491/0.4957, allocations: 27.38 kB / 0.5317 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.4958, allocations: 59.7 kB / 0.5317 GB, free: 35.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.4959, allocations: 23.2 kB / 0.5317 GB, free: 35.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005159/0.4964, allocations: 484.1 kB / 0.5322 GB, free: 35.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4964, allocations: 0 / 0.5322 GB, free: 35.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001764/0.4982, allocations: 462.9 kB / 0.5326 GB, free: 35.54 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.0001647/0.4983, allocations: 123.7 kB / 0.5328 GB, free: 35.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004892/0.5032, allocations: 2.796 MB / 0.5355 GB, free: 33.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5033, allocations: 1.125 kB / 0.5355 GB, free: 33.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.5043, allocations: 0.9198 MB / 0.5364 GB, free: 32.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.5055, allocations: 242.5 kB / 0.5366 GB, free: 32.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.5094, allocations: 2.428 MB / 0.539 GB, free: 29.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006033/0.51, allocations: 1.178 MB / 0.5401 GB, free: 28.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007199/0.5108, allocations: 203.2 kB / 0.5403 GB, free: 28.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001984/0.511, allocations: 75.34 kB / 0.5404 GB, free: 28.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.511, allocations: 5.312 kB / 0.5404 GB, free: 28.13 MB / 382.1 MB Notification: Performance of Templates: time 0.03514/0.5461, allocations: 24.6 MB / 0.5644 GB, free: 3.691 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)