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.001667/0.001667, allocations: 102.5 kB / 17.59 MB, free: 5.414 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.001821/0.001821, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.335/1.335, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1892/0.1892, allocations: 38.02 MB / 330.4 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 61.55 kB / 399.5 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.0953, allocations: 58.06 MB / 457.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.009812/0.1051, allocations: 7.183 MB / 464.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00513/0.1103, allocations: 3.023 MB / 467.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008183/0.1112, allocations: 35.81 kB / 467.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.1126, allocations: 377.6 kB / 468.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.1144, allocations: 0.6295 MB / 468.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.1156, allocations: 438.7 kB / 469.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001946/0.1175, allocations: 1.485 MB / 470.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.1192, allocations: 1.184 MB / 471.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009444/0.1202, allocations: 0.5722 MB / 472.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001073/0.1213, allocations: 0.6498 MB / 473.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002814/0.1216, allocations: 112 kB / 473.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007891/0.1224, allocations: 355.5 kB / 473.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004943/0.1229, allocations: 395 kB / 473.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008512/0.1237, allocations: 0.5753 MB / 474.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001921/0.1257, allocations: 1.667 MB / 476.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1257, allocations: 0 / 476.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1257, allocations: 0 / 476.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.019e-05/0.1258, allocations: 0 / 476.2 MB, free: 5.336 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.003138/0.1289, allocations: 1.417 MB / 477.6 MB, free: 3.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1289, allocations: 15.89 kB / 477.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007576/0.1297, allocations: 163.5 kB / 477.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.1312, allocations: 0.7973 MB / 478.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.1312, allocations: 66 kB / 478.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002008/0.1314, allocations: 84 kB / 478.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001855/0.1333, allocations: 1.153 MB / 479.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.677e-05/0.1333, allocations: 11.84 kB / 479.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.526e-05/0.1334, allocations: 35.98 kB / 479.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.1336, allocations: 65.97 kB / 480 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.1353, allocations: 0.9446 MB / 480.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006433/0.1417, allocations: 4.632 MB / 485.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1428, allocations: 0.6842 MB / 486.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006/0.1434, allocations: 336.2 kB / 486.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.1435, allocations: 4.562 kB / 486.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1435, allocations: 47.06 kB / 486.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.465e-06/0.1435, allocations: 4 kB / 486.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.005012/0.1486, allocations: 2.335 MB / 488.9 MB, free: 8.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.1487, allocations: 141.2 kB / 489.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008728/0.1495, allocations: 0.6801 MB / 489.8 MB, free: 7.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.1496, allocations: 41.7 kB / 489.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003341/0.1499, allocations: 486.8 kB / 490.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.1501, allocations: 224.8 kB / 490.5 MB, free: 6.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.1504, allocations: 142.6 kB / 490.6 MB, free: 6.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1505, allocations: 390.7 kB / 491 MB, free: 5.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.151, allocations: 280.7 kB / 491.3 MB, free: 5.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/0.1517, allocations: 0.5082 MB / 491.8 MB, free: 4.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003577/0.1553, allocations: 1.521 MB / 493.3 MB, free: 3.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1553, allocations: 4 kB / 493.3 MB, free: 3.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003063/0.1584, allocations: 1.383 MB / 494.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.1584, allocations: 12 kB / 494.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.1585, allocations: 8 kB / 494.7 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.1601, allocations: 434.9 kB / 495.1 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005515/0.1606, allocations: 143.8 kB / 495.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009436/0.1701, allocations: 6.717 MB / 0.4902 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.1708, allocations: 39.97 kB / 0.4903 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.588e-05/0.1709, allocations: 32 kB / 0.4903 GB, free: 10.28 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.0008712/0.1717, allocations: 0.5135 MB / 0.4908 GB, free: 9.762 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005925/0.1723, allocations: 0.4965 MB / 0.4913 GB, free: 9.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003363/0.1757, allocations: 1.49 MB / 0.4927 GB, free: 7.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.58e-06/0.1758, allocations: 0 / 0.4927 GB, free: 7.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002702/0.1785, allocations: 1.289 MB / 0.494 GB, free: 6.227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1785, allocations: 8 kB / 0.494 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1785, allocations: 8 kB / 0.494 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.18, allocations: 437.3 kB / 0.4944 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.1806, allocations: 151.7 kB / 0.4946 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008336/0.189, allocations: 6.494 MB / 0.5009 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006633/0.1897, allocations: 31.98 kB / 0.501 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.393e-05/0.1898, allocations: 36 kB / 0.501 GB, free: 14.79 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.0002846/0.19, allocations: 233.8 kB / 0.5012 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.1903, allocations: 82.97 kB / 0.5013 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.1917, allocations: 0.7302 MB / 0.502 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.1917, allocations: 12.08 kB / 0.502 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1917, allocations: 0 / 0.502 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.1917, allocations: 7.984 kB / 0.502 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.1948, allocations: 1.762 MB / 0.5037 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1948, allocations: 4 kB / 0.5038 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007393/0.1956, allocations: 143.8 kB / 0.5039 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001079/0.1957, allocations: 24.84 kB / 0.5039 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.662e-05/0.1957, allocations: 16 kB / 0.5039 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009982/0.1968, allocations: 1.382 MB / 0.5053 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1968, allocations: 0 / 0.5053 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.1986, allocations: 1.198 MB / 0.5064 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.1989, allocations: 220 kB / 0.5067 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.1991, allocations: 19.98 kB / 0.5067 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004888/0.1996, allocations: 27.98 kB / 0.5067 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.1997, allocations: 44.44 kB / 0.5067 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.1998, allocations: 16 kB / 0.5068 GB, free: 8.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000671/0.2004, allocations: 479 kB / 0.5072 GB, free: 8.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.2004, allocations: 0 / 0.5072 GB, free: 8.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001661/0.2021, allocations: 411.9 kB / 0.5076 GB, free: 7.723 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.0003543/0.2025, allocations: 140.3 kB / 0.5077 GB, free: 7.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004046/0.2065, allocations: 2.104 MB / 0.5098 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.2066, allocations: 0 / 0.5098 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/0.2072, allocations: 439.1 kB / 0.5102 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.2084, allocations: 228.9 kB / 0.5104 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003887/0.2123, allocations: 2.162 MB / 0.5125 GB, free: 2.566 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008643/0.2132, allocations: 1.116 MB / 0.5136 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.2135, allocations: 63.42 kB / 0.5137 GB, free: 1.359 MB / 398.1 MB Notification: Performance of SimCode: time 9.21e-07/0.2135, allocations: 0 / 0.5137 GB, free: 1.359 MB / 398.1 MB Notification: Performance of Templates: time 0.2058/0.4193, allocations: 18.98 MB / 0.5322 GB, free: 62.28 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)