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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001232/0.001232, allocations: 110.2 kB / 17.75 MB, free: 5.336 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.001351/0.001351, allocations: 185.4 kB / 18.67 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1728/0.1728, allocations: 37.98 MB / 309.9 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 71.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.09098, allocations: 55.24 MB / 487.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.009474/0.1005, allocations: 7.188 MB / 495 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005214/0.1057, allocations: 3.077 MB / 498.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007636/0.1065, allocations: 35.81 kB / 498.1 MB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.1079, allocations: 369.7 kB / 498.4 MB, free: 13.64 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001844/0.1098, allocations: 0.6373 MB / 499.1 MB, free: 13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.1111, allocations: 431.8 kB / 499.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002552/0.1136, allocations: 1.489 MB / 0.4893 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.1154, allocations: 1.191 MB / 0.4904 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.1165, allocations: 0.5838 MB / 0.491 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001246/0.1178, allocations: 0.6538 MB / 0.4916 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002726/0.1181, allocations: 112 kB / 0.4917 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007415/0.1188, allocations: 351.5 kB / 0.4921 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004772/0.1193, allocations: 398.9 kB / 0.4924 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007594/0.1201, allocations: 0.5754 MB / 0.493 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.122, allocations: 1.694 MB / 0.4947 GB, free: 5.504 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.122, allocations: 4 kB / 0.4947 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.122, allocations: 0 / 0.4947 GB, free: 5.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.391e-05/0.1221, allocations: 0 / 0.4947 GB, free: 5.5 MB / 382.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.002932/0.125, allocations: 1.417 MB / 0.4961 GB, free: 4.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.1251, allocations: 15.89 kB / 0.4961 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006851/0.1258, allocations: 163.5 kB / 0.4962 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.1273, allocations: 0.8402 MB / 0.497 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.405e-05/0.1274, allocations: 69.92 kB / 0.4971 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/0.1275, allocations: 91.89 kB / 0.4972 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.1292, allocations: 1.153 MB / 0.4983 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.1293, allocations: 8 kB / 0.4983 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-05/0.1294, allocations: 32 kB / 0.4984 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.1295, allocations: 65.97 kB / 0.4984 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.131, allocations: 0.9368 MB / 0.4993 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005723/0.1368, allocations: 4.609 MB / 0.5038 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.1378, allocations: 0.6832 MB / 0.5045 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005578/0.1384, allocations: 344.1 kB / 0.5048 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.1385, allocations: 8.562 kB / 0.5048 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.1385, allocations: 51 kB / 0.5049 GB, free: 10.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.314e-06/0.1385, allocations: 0 / 0.5049 GB, free: 10.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=62): time 0.0046/0.1431, allocations: 2.339 MB / 0.5072 GB, free: 8.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.1432, allocations: 141.2 kB / 0.5073 GB, free: 7.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007611/0.144, allocations: 0.6841 MB / 0.508 GB, free: 7.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.144, allocations: 33.7 kB / 0.508 GB, free: 7.266 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003068/0.1443, allocations: 498.8 kB / 0.5085 GB, free: 6.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.1445, allocations: 220.8 kB / 0.5087 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002038/0.1447, allocations: 142.6 kB / 0.5088 GB, free: 6.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1449, allocations: 390.7 kB / 0.5092 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.1453, allocations: 280.7 kB / 0.5095 GB, free: 5.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.1459, allocations: 0.5082 MB / 0.51 GB, free: 5.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003387/0.1493, allocations: 1.509 MB / 0.5114 GB, free: 3.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1493, allocations: 4 kB / 0.5114 GB, free: 3.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002947/0.1523, allocations: 1.379 MB / 0.5128 GB, free: 2.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1523, allocations: 16.08 kB / 0.5128 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1523, allocations: 8 kB / 0.5128 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.1539, allocations: 437.6 kB / 0.5132 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/0.1545, allocations: 147.8 kB / 0.5134 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009352/0.1638, allocations: 6.701 MB / 0.5199 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005831/0.1644, allocations: 35.98 kB / 0.52 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.1645, allocations: 35.98 kB / 0.52 GB, free: 10.41 MB / 414.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.0007893/0.1653, allocations: 0.5135 MB / 0.5205 GB, free: 9.891 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006025/0.1659, allocations: 0.5004 MB / 0.521 GB, free: 9.285 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00363/0.1695, allocations: 1.478 MB / 0.5224 GB, free: 7.684 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.672e-06/0.1695, allocations: 4 kB / 0.5224 GB, free: 7.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.00284/0.1724, allocations: 1.293 MB / 0.5237 GB, free: 6.355 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1724, allocations: 11.98 kB / 0.5237 GB, free: 6.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1724, allocations: 8 kB / 0.5237 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.1739, allocations: 425.7 kB / 0.5241 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005213/0.1744, allocations: 143.7 kB / 0.5243 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1929/0.3674, allocations: 6.467 MB / 0.5306 GB, free: 48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.3681, allocations: 33.36 kB / 0.5306 GB, free: 48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.3682, allocations: 35.56 kB / 0.5306 GB, free: 48 MB / 414.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.0002307/0.3685, allocations: 234.1 kB / 0.5309 GB, free: 47.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.3687, allocations: 81.41 kB / 0.5309 GB, free: 47.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.37, allocations: 0.7313 MB / 0.5316 GB, free: 47.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.3701, allocations: 4.797 kB / 0.5317 GB, free: 47.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3701, allocations: 0.5625 kB / 0.5317 GB, free: 47.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/0.3704, allocations: 217.5 kB / 0.5319 GB, free: 47.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.3705, allocations: 16.89 kB / 0.5319 GB, free: 47.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.371, allocations: 26.23 kB / 0.5319 GB, free: 47.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3711, allocations: 44.39 kB / 0.5319 GB, free: 47.68 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001653/0.3728, allocations: 0.9841 MB / 0.5329 GB, free: 47.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001553/0.3744, allocations: 1.364 MB / 0.5342 GB, free: 47.05 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004461/0.3748, allocations: 318.7 kB / 0.5345 GB, free: 47.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006056/0.3754, allocations: 479.5 kB / 0.535 GB, free: 46.95 MB / 414.1 MB Notification: Performance of Backend: time 5.71e-07/0.3754, allocations: 0 / 0.535 GB, free: 46.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003576/0.379, allocations: 1.865 MB / 0.5368 GB, free: 46.16 MB / 414.1 MB Notification: Performance of SimCode: time 0.003213/0.3822, allocations: 2.509 MB / 0.5393 GB, free: 44.75 MB / 414.1 MB Notification: Performance of Templates: time 0.02756/0.4098, allocations: 19.78 MB / 0.5586 GB, free: 36.93 MB / 414.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)