Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_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.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 106.3 kB / 16.92 MB, free: 6.109 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.001274/0.001275, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.381/1.381, 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.1778/0.1778, allocations: 38.04 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 60.72 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1142, allocations: 58.07 MB / 456.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.01122/0.1255, allocations: 7.175 MB / 464 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005855/0.1314, allocations: 3.015 MB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008713/0.1323, allocations: 35.81 kB / 467.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.1339, allocations: 373.6 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.136, allocations: 0.6451 MB / 468.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.1373, allocations: 430.7 kB / 468.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002626/0.1399, allocations: 1.481 MB / 470 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002245/0.1422, allocations: 1.199 MB / 471.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.1434, allocations: 0.5644 MB / 471.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.1448, allocations: 0.6498 MB / 472.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004463/0.1452, allocations: 112 kB / 472.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1463, allocations: 355.5 kB / 472.9 MB, free: 8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005838/0.1469, allocations: 399 kB / 473.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009942/0.1479, allocations: 0.5792 MB / 473.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001977/0.1499, allocations: 1.655 MB / 475.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1499, allocations: 0 / 475.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.15, allocations: 0 / 475.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.15, allocations: 0 / 475.5 MB, free: 5.367 MB / 350.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.002634/0.1526, allocations: 1.425 MB / 476.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1527, allocations: 11.89 kB / 476.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000735/0.1534, allocations: 167.5 kB / 477.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.1548, allocations: 0.7895 MB / 477.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.1548, allocations: 62 kB / 477.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/0.155, allocations: 95.97 kB / 478 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.1567, allocations: 1.157 MB / 479.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.25e-05/0.1568, allocations: 3.906 kB / 479.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.577e-05/0.1569, allocations: 36 kB / 479.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.797e-05/0.157, allocations: 61.97 kB / 479.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/0.1585, allocations: 0.9406 MB / 480.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005838/0.1644, allocations: 4.636 MB / 484.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1655, allocations: 0.6864 MB / 485.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005771/0.1661, allocations: 340.2 kB / 485.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.425e-05/0.1662, allocations: 12.55 kB / 485.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.1662, allocations: 43.06 kB / 485.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.755e-06/0.1662, allocations: 0 / 485.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.004947/0.1712, allocations: 2.335 MB / 488.3 MB, free: 8.066 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/0.1713, allocations: 137.1 kB / 488.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008601/0.1722, allocations: 0.6801 MB / 489.1 MB, free: 7.211 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.1722, allocations: 37.7 kB / 489.1 MB, free: 7.168 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.1726, allocations: 494.8 kB / 489.6 MB, free: 6.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.1728, allocations: 212.9 kB / 489.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.173, allocations: 158.6 kB / 490 MB, free: 6.305 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1732, allocations: 386.8 kB / 490.3 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.1737, allocations: 276.7 kB / 490.6 MB, free: 5.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006425/0.1743, allocations: 0.5121 MB / 491.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003603/0.178, allocations: 1.521 MB / 492.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.178, allocations: 3.938 kB / 492.7 MB, free: 3.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003106/0.1811, allocations: 1.386 MB / 494 MB, free: 1.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.1811, allocations: 8 kB / 494 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/0.1812, allocations: 8 kB / 494.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.1828, allocations: 443.3 kB / 494.5 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005581/0.1834, allocations: 143.8 kB / 494.6 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00987/0.1933, allocations: 6.702 MB / 0.4896 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006632/0.1939, allocations: 39.98 kB / 0.4896 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.7e-05/0.194, allocations: 39.98 kB / 0.4897 GB, free: 10.3 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.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009275/0.195, allocations: 0.5018 MB / 0.4901 GB, free: 9.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006756/0.1957, allocations: 0.5043 MB / 0.4906 GB, free: 9.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003495/0.1992, allocations: 1.486 MB / 0.4921 GB, free: 7.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.943e-06/0.1992, allocations: 0 / 0.4921 GB, free: 7.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002845/0.202, allocations: 1.293 MB / 0.4934 GB, free: 6.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.2021, allocations: 12 kB / 0.4934 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.2021, allocations: 4 kB / 0.4934 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/0.2036, allocations: 433.6 kB / 0.4938 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.2042, allocations: 151.7 kB / 0.4939 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008747/0.2129, allocations: 6.496 MB / 0.5003 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006912/0.2137, allocations: 31.98 kB / 0.5003 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.773e-05/0.2138, allocations: 36 kB / 0.5003 GB, free: 14.81 MB / 398.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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (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 {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0003061/0.2141, allocations: 232 kB / 0.5006 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/0.2143, allocations: 82.97 kB / 0.5006 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.2157, allocations: 0.7341 MB / 0.5014 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.2158, allocations: 4 kB / 0.5014 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2158, allocations: 8 kB / 0.5014 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.2158, allocations: 3.984 kB / 0.5014 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.2189, allocations: 1.758 MB / 0.5031 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.2189, allocations: 3.938 kB / 0.5031 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007226/0.2196, allocations: 139.8 kB / 0.5032 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.402e-05/0.2197, allocations: 24.84 kB / 0.5032 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/0.2198, allocations: 15.98 kB / 0.5033 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009565/0.2208, allocations: 1.386 MB / 0.5046 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2208, allocations: 0 / 0.5046 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.2226, allocations: 1.206 MB / 0.5058 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003142/0.2229, allocations: 216 kB / 0.506 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.223, allocations: 12 kB / 0.506 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/0.2235, allocations: 27.97 kB / 0.506 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.2236, allocations: 44.45 kB / 0.5061 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-05/0.2237, allocations: 23.98 kB / 0.5061 GB, free: 8.613 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005909/0.2243, allocations: 475 kB / 0.5066 GB, free: 8.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2243, allocations: 0 / 0.5066 GB, free: 8.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001461/0.2257, allocations: 408 kB / 0.5069 GB, free: 7.754 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,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.0003068/0.2261, allocations: 141.9 kB / 0.5071 GB, free: 7.609 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003901/0.23, allocations: 2.097 MB / 0.5091 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.23, allocations: 4.062 kB / 0.5091 GB, free: 5.461 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006607/0.2307, allocations: 445.7 kB / 0.5096 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.2319, allocations: 234.9 kB / 0.5098 GB, free: 4.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004104/0.236, allocations: 2.102 MB / 0.5118 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009443/0.237, allocations: 1.116 MB / 0.5129 GB, free: 1.512 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008427/0.2378, allocations: 218.5 kB / 0.5131 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.238, allocations: 59.42 kB / 0.5132 GB, free: 1.234 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.238, allocations: 0 / 0.5132 GB, free: 1.234 MB / 398.1 MB Notification: Performance of Templates: time 0.2251/0.4632, allocations: 17.16 MB / 0.5299 GB, free: 64.09 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)