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.001116/0.001116, allocations: 108 kB / 16.51 MB, free: 6.707 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.001077/0.001077, allocations: 190.5 kB / 17.43 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.398/1.398, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1748/0.1748, allocations: 38.03 MB / 329.3 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.31 kB / 398.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1176, allocations: 58.05 MB / 456.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.01014/0.1278, allocations: 8.198 MB / 464.3 MB, free: 256 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005632/0.1335, allocations: 3.347 MB / 467.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001088/0.1346, allocations: 59.62 kB / 467.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.1358, allocations: 330.2 kB / 468.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.1372, allocations: 0.5756 MB / 468.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009695/0.1382, allocations: 390.7 kB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.1401, allocations: 1.863 MB / 470.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.1414, allocations: 0.9641 MB / 471.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006216/0.142, allocations: 0.4901 MB / 472.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007776/0.1428, allocations: 0.6382 MB / 473 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.1429, allocations: 64 kB / 473 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005567/0.1435, allocations: 299.5 kB / 473.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.1438, allocations: 350.9 kB / 473.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004894/0.1443, allocations: 0.5169 MB / 474.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.1457, allocations: 1.604 MB / 475.8 MB, free: 4.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1457, allocations: 4 kB / 475.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1457, allocations: 0 / 475.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1458, allocations: 4 kB / 475.8 MB, free: 4.727 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.002615/0.1484, allocations: 1.413 MB / 477.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1484, allocations: 8.031 kB / 477.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00068/0.1491, allocations: 167.5 kB / 477.4 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.1504, allocations: 0.7895 MB / 478.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.702e-05/0.1505, allocations: 62 kB / 478.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.1507, allocations: 95.89 kB / 478.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.1525, allocations: 1.149 MB / 479.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.359e-05/0.1525, allocations: 11.92 kB / 479.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-05/0.1526, allocations: 39.98 kB / 479.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/0.1528, allocations: 53.98 kB / 479.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.1544, allocations: 0.9446 MB / 480.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00593/0.1603, allocations: 4.64 MB / 485.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.1615, allocations: 0.6829 MB / 485.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006035/0.1621, allocations: 336.2 kB / 486.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-05/0.1621, allocations: 12.55 kB / 486.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.1622, allocations: 39.12 kB / 486.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.875e-06/0.1622, allocations: 0 / 486.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.005308/0.1675, allocations: 2.35 MB / 488.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.1676, allocations: 141 kB / 488.7 MB, free: 7.258 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.1687, allocations: 0.6802 MB / 489.4 MB, free: 6.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/0.1688, allocations: 37.7 kB / 489.4 MB, free: 6.527 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004256/0.1692, allocations: 494.9 kB / 489.9 MB, free: 6.035 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.1694, allocations: 216.8 kB / 490.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002615/0.1697, allocations: 146.6 kB / 490.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1699, allocations: 390.8 kB / 490.7 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.1704, allocations: 276.7 kB / 490.9 MB, free: 5.008 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006808/0.1711, allocations: 0.5159 MB / 491.4 MB, free: 4.383 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003695/0.1748, allocations: 1.509 MB / 493 MB, free: 2.754 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.1748, allocations: 4 kB / 493 MB, free: 2.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003118/0.1779, allocations: 1.375 MB / 494.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.178, allocations: 8 kB / 494.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.178, allocations: 7.938 kB / 494.3 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.1796, allocations: 439.2 kB / 494.8 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000568/0.1802, allocations: 147.8 kB / 494.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00908/0.1893, allocations: 6.154 MB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007177/0.19, allocations: 35.98 kB / 0.4894 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.1901, allocations: 35.98 kB / 0.4894 GB, free: 10.25 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.0009021/0.191, allocations: 0.5097 MB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006716/0.1917, allocations: 0.4965 MB / 0.4904 GB, free: 9.133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003509/0.1952, allocations: 1.478 MB / 0.4918 GB, free: 7.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.933e-06/0.1952, allocations: 0 / 0.4918 GB, free: 7.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002878/0.1981, allocations: 1.3 MB / 0.4931 GB, free: 6.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1982, allocations: 12 kB / 0.4931 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.1982, allocations: 4 kB / 0.4931 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.1997, allocations: 421.7 kB / 0.4935 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/0.2003, allocations: 147.7 kB / 0.4937 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008471/0.2088, allocations: 5.923 MB / 0.4994 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.2095, allocations: 39.98 kB / 0.4995 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.2097, allocations: 32 kB / 0.4995 GB, free: 15.36 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.0003394/0.21, allocations: 247.8 kB / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/0.2103, allocations: 75.06 kB / 0.4998 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.2118, allocations: 0.738 MB / 0.5005 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.2118, allocations: 12 kB / 0.5005 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2118, allocations: 0 / 0.5005 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2119, allocations: 3.984 kB / 0.5006 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.2152, allocations: 1.762 MB / 0.5023 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2152, allocations: 0 / 0.5023 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007283/0.2159, allocations: 135.8 kB / 0.5024 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/0.2161, allocations: 28.78 kB / 0.5024 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.963e-05/0.2162, allocations: 20.06 kB / 0.5024 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.2172, allocations: 1.28 MB / 0.5037 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.2172, allocations: 12.03 kB / 0.5037 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.2191, allocations: 1.206 MB / 0.5049 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003814/0.2195, allocations: 216 kB / 0.5051 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.2196, allocations: 12 kB / 0.5051 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.2201, allocations: 27.97 kB / 0.5051 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.2203, allocations: 40.52 kB / 0.5052 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.434e-05/0.2203, allocations: 23.98 kB / 0.5052 GB, free: 9.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000682/0.221, allocations: 475 kB / 0.5056 GB, free: 8.793 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.221, allocations: 0 / 0.5056 GB, free: 8.793 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001767/0.2228, allocations: 419.9 kB / 0.506 GB, free: 8.383 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.0003468/0.2231, allocations: 138.5 kB / 0.5062 GB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003669/0.2268, allocations: 1.949 MB / 0.5081 GB, free: 6.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.2268, allocations: 0 / 0.5081 GB, free: 6.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006736/0.2275, allocations: 445.9 kB / 0.5085 GB, free: 5.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.2288, allocations: 211 kB / 0.5087 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004108/0.2329, allocations: 2.486 MB / 0.5111 GB, free: 3.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009317/0.2338, allocations: 1.119 MB / 0.5122 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008206/0.2347, allocations: 206.5 kB / 0.5124 GB, free: 1.719 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.2349, allocations: 63.42 kB / 0.5125 GB, free: 1.656 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2349, allocations: 0 / 0.5125 GB, free: 1.656 MB / 398.1 MB Notification: Performance of Templates: time 0.259/0.4939, allocations: 16.39 MB / 0.5285 GB, free: 64.48 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)